Date: Tue, 28 Mar 2017 00:39:42 +0000 (UTC) From: Bryan Drewery <bdrewery@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r316066 - head/sys/cam/scsi Message-ID: <201703280039.v2S0dgpt073161@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bdrewery Date: Tue Mar 28 00:39:41 2017 New Revision: 316066 URL: https://svnweb.freebsd.org/changeset/base/316066 Log: Release ccb if mode_buffer allocation fails. MFC after: 2 weeks Obtained from: OneFS Sponsored by: Dell EMC Isilon Modified: head/sys/cam/scsi/scsi_ch.c Modified: head/sys/cam/scsi/scsi_ch.c ============================================================================== --- head/sys/cam/scsi/scsi_ch.c Mon Mar 27 23:48:36 2017 (r316065) +++ head/sys/cam/scsi/scsi_ch.c Tue Mar 28 00:39:41 2017 (r316066) @@ -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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703280039.v2S0dgpt073161>