Release ccb if mode_buffer allocation fails.

MFC after:	2 weeks
Obtained from:	OneFS
Sponsored by:	Dell EMC Isilon
This commit is contained in:
bdrewery 2017-03-28 00:39:41 +00:00
parent 4be5457efa
commit 225c11281c

View File

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