Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Apr 2017 20:36:40 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r316791 - stable/10/sys/cam/scsi
Message-ID:  <201704132036.v3DKae6C026245@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704132036.v3DKae6C026245>