camcontrol(8): Fix trival double-free
Reported by: Coverity CID: 1331223 Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
7bfdbca596
commit
3aeebae9ca
@ -4994,6 +4994,7 @@ dev_has_vpd_page(struct cam_device *dev, uint8_t page_id, int retry_count,
|
||||
|
||||
if (cam_send_ccb(dev, ccb) < 0) {
|
||||
cam_freeccb(ccb);
|
||||
ccb = NULL;
|
||||
retval = -1;
|
||||
goto bailout;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user