mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue