svn commit: r211461 - stable/8/sys/dev/mvs

Alexander Motin mav at FreeBSD.org
Wed Aug 18 15:58:27 UTC 2010


Author: mav
Date: Wed Aug 18 15:58:26 2010
New Revision: 211461
URL: http://svn.freebsd.org/changeset/base/211461

Log:
  MFC r208818:
  Plug memory leak to silent Coverity. Error is still not really handled.
  
  Found with:   Coverity Prevent(tm)
  CID:          4137

Modified:
  stable/8/sys/dev/mvs/mvs.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cam/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/dev/mvs/mvs.c
==============================================================================
--- stable/8/sys/dev/mvs/mvs.c	Wed Aug 18 15:56:09 2010	(r211460)
+++ stable/8/sys/dev/mvs/mvs.c	Wed Aug 18 15:58:26 2010	(r211461)
@@ -1727,6 +1727,7 @@ mvs_issue_read_log(device_t dev)
 	ataio = &ccb->ataio;
 	ataio->data_ptr = malloc(512, M_MVS, M_NOWAIT);
 	if (ataio->data_ptr == NULL) {
+		xpt_free_ccb(ccb);
 		device_printf(dev, "Unable allocate memory for READ LOG command");
 		return; /* XXX */
 	}


More information about the svn-src-stable mailing list