svn commit: r208817 - head/sys/dev/siis

Alexander Motin mav at FreeBSD.org
Sat Jun 5 08:16:21 UTC 2010


Author: mav
Date: Sat Jun  5 08:16:21 2010
New Revision: 208817
URL: http://svn.freebsd.org/changeset/base/208817

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

Modified:
  head/sys/dev/siis/siis.c

Modified: head/sys/dev/siis/siis.c
==============================================================================
--- head/sys/dev/siis/siis.c	Sat Jun  5 08:14:19 2010	(r208816)
+++ head/sys/dev/siis/siis.c	Sat Jun  5 08:16:21 2010	(r208817)
@@ -1338,6 +1338,7 @@ siis_issue_read_log(device_t dev)
 	ataio = &ccb->ataio;
 	ataio->data_ptr = malloc(512, M_SIIS, 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-head mailing list