MFC r260996:

Fix memory and references leak due to unfreed path in case we can't
allocate bus scan CCB.
This commit is contained in:
mav 2014-02-04 00:51:06 +00:00
parent 9fa9e83832
commit d374d7f398

View File

@ -3917,9 +3917,11 @@ xpt_bus_register(struct cam_sim *sim, device_t parent, u_int32_t bus)
scan_ccb->ccb_h.func_code = XPT_SCAN_BUS;
scan_ccb->crcn.flags = 0;
xpt_rescan(scan_ccb);
} else
} else {
xpt_print(path,
"Can't allocate CCB to scan bus\n");
xpt_free_path(path);
}
} else
xpt_free_path(path);
} else