Author: bdrewery Date: Thu Apr 13 20:36:40 2017 New Revision: 316791 URL: https://svnweb.freebsd.org/changeset/base/316791
Log: MFC r316066: Release ccb if mode_buffer allocation fails. Modified: stable/10/sys/cam/scsi/scsi_ch.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/cam/scsi/scsi_ch.c ============================================================================== --- stable/10/sys/cam/scsi/scsi_ch.c Thu Apr 13 20:36:22 2017 (r316790) +++ stable/10/sys/cam/scsi/scsi_ch.c Thu Apr 13 20:36:40 2017 (r316791) @@ -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); } _______________________________________________ svn-src-stable-10@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10 To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"