sym(4): Don't double-free 'sim' in failure case
Reported by: Coverity CID: 1006106 Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
3f43456e6f
commit
4470535023
@ -8890,6 +8890,7 @@ static int sym_cam_attach(hcb_p np)
|
||||
if (xpt_bus_register(sim, np->device, 0) != CAM_SUCCESS)
|
||||
goto fail;
|
||||
np->sim = sim;
|
||||
sim = NULL;
|
||||
|
||||
if (xpt_create_path(&path, NULL,
|
||||
cam_sim_path(np->sim), CAM_TARGET_WILDCARD,
|
||||
|
Loading…
x
Reference in New Issue
Block a user