diff options
author | scottl <scottl@FreeBSD.org> | 2005-03-19 06:32:57 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2005-03-19 06:32:57 +0000 |
commit | 2cb43d3de1d4cb80657f2f52553874b41640516d (patch) | |
tree | d516f78ada249c063598a4619a35db7530218ee3 | |
parent | d2396e762ac90e0d08f86e4bbd8dae976ce5320a (diff) | |
download | FreeBSD-src-2cb43d3de1d4cb80657f2f52553874b41640516d.zip FreeBSD-src-2cb43d3de1d4cb80657f2f52553874b41640516d.tar.gz |
Don't free the SIM object twice.
Submitted by: Coverity Prevent analysis tool
-rw-r--r-- | sys/cam/scsi/scsi_low.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/cam/scsi/scsi_low.c b/sys/cam/scsi/scsi_low.c index 724341b..2249559 100644 --- a/sys/cam/scsi/scsi_low.c +++ b/sys/cam/scsi/scsi_low.c @@ -1421,7 +1421,6 @@ scsi_low_attach_cam(slp) CAM_LUN_WILDCARD) != CAM_REQ_CMP) { xpt_bus_deregister(cam_sim_path(slp->sl_si.sim)); cam_sim_free(slp->sl_si.sim, /*free_simq*/TRUE); - free(slp->sl_si.sim, M_DEVBUF); return ENODEV; } |