Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Sep 2024 04:45:45 GMT
From:      Zhenlei Huang <zlei@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: ae8388f726b5 - stable/14 - mpi3mr(4): Stop checking for failures from malloc(M_WAITOK)
Message-ID:  <202409300445.48U4jj3t087842@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by zlei:

URL: https://cgit.FreeBSD.org/src/commit/?id=ae8388f726b57773b9c7e7cd93966b27d39321dd

commit ae8388f726b57773b9c7e7cd93966b27d39321dd
Author:     Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2024-09-03 10:25:31 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2024-09-30 04:44:25 +0000

    mpi3mr(4): Stop checking for failures from malloc(M_WAITOK)
    
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D45852
    
    (cherry picked from commit 849f9ac370bd66993ce5cc6fca0d2ef9bd03c2c9)
---
 sys/dev/mpi3mr/mpi3mr_cam.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/sys/dev/mpi3mr/mpi3mr_cam.c b/sys/dev/mpi3mr/mpi3mr_cam.c
index 4d17bb2338e5..7cc7c76cc202 100644
--- a/sys/dev/mpi3mr/mpi3mr_cam.c
+++ b/sys/dev/mpi3mr/mpi3mr_cam.c
@@ -2065,12 +2065,6 @@ mpi3mr_cam_attach(struct mpi3mr_softc *sc)
 	mpi3mr_dprint(sc, MPI3MR_XINFO, "Starting CAM Attach\n");
 
 	cam_sc = malloc(sizeof(struct mpi3mr_cam_softc), M_MPI3MR, M_WAITOK|M_ZERO);
-	if (!cam_sc) {
-		mpi3mr_dprint(sc, MPI3MR_ERROR,
-		    "Failed to allocate memory for controller CAM instance\n");
-		return (ENOMEM);
-	}
-
 	cam_sc->maxtargets = sc->facts.max_perids + 1;
 
 	TAILQ_INIT(&cam_sc->tgt_list);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202409300445.48U4jj3t087842>