svn commit: r208819 - head/sys/cam/ata
Alexander Motin
mav at FreeBSD.org
Sat Jun 5 08:36:38 UTC 2010
Author: mav
Date: Sat Jun 5 08:36:37 2010
New Revision: 208819
URL: http://svn.freebsd.org/changeset/base/208819
Log:
Fix double free on error.
Found with: Coverity Prevent(tm)
CID: 4573
Modified:
head/sys/cam/ata/ata_pmp.c
Modified: head/sys/cam/ata/ata_pmp.c
==============================================================================
--- head/sys/cam/ata/ata_pmp.c Sat Jun 5 08:21:18 2010 (r208818)
+++ head/sys/cam/ata/ata_pmp.c Sat Jun 5 08:36:37 2010 (r208819)
@@ -737,10 +737,8 @@ pmpdone(struct cam_periph *periph, union
if (xpt_create_path(&dpath, periph,
xpt_path_path_id(periph->path),
i, 0) != CAM_REQ_CMP) {
- printf("pmpdone: xpt_create_path failed"
- ", bus scan halted\n");
- xpt_free_ccb(done_ccb);
- goto done;
+ printf("pmpdone: xpt_create_path failed\n");
+ continue;
}
/* If we did hard reset to this device, inform XPT. */
if ((softc->reset & softc->found & (1 << i)) != 0)
More information about the svn-src-all
mailing list