camcontrol(8): Fix trival double-free

Reported by:	Coverity
CID:		1331223
Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
Conrad Meyer 2016-05-11 22:22:49 +00:00
parent 7bfdbca596
commit 3aeebae9ca

View File

@ -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;
}