mirror of
https://github.com/opnsense/src.git
synced 2026-04-29 18:32:49 -04:00
Release ccb if mode_buffer allocation fails.
MFC after: 2 weeks Obtained from: OneFS Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
4a5c6c6ab0
commit
9ff3cdff12
1 changed files with 1 additions and 0 deletions
|
|
@ -1569,6 +1569,7 @@ chgetparams(struct cam_periph *periph)
|
|||
|
||||
if (mode_buffer == NULL) {
|
||||
printf("chgetparams: couldn't malloc mode sense data\n");
|
||||
xpt_release_ccb(ccb);
|
||||
return(ENOSPC);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue