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
4be5457efa
commit
225c11281c
@ -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 New Issue
Block a user