svn commit: r316791 - stable/10/sys/cam/scsi
Bryan Drewery
bdrewery at FreeBSD.org
Thu Apr 13 20:36:41 UTC 2017
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);
}
More information about the svn-src-all
mailing list