svn commit: r208814 - head/sys/dev/ahci
Alexander Motin
mav at FreeBSD.org
Sat Jun 5 08:07:54 UTC 2010
Author: mav
Date: Sat Jun 5 08:07:54 2010
New Revision: 208814
URL: http://svn.freebsd.org/changeset/base/208814
Log:
Plug memory leak to silent Coverity. Error is still not really handled.
Found with: Coverity Prevent(tm)
CID: 4130
Modified:
head/sys/dev/ahci/ahci.c
Modified: head/sys/dev/ahci/ahci.c
==============================================================================
--- head/sys/dev/ahci/ahci.c Sat Jun 5 08:02:19 2010 (r208813)
+++ head/sys/dev/ahci/ahci.c Sat Jun 5 08:07:54 2010 (r208814)
@@ -2047,6 +2047,7 @@ ahci_issue_read_log(device_t dev)
ataio = &ccb->ataio;
ataio->data_ptr = malloc(512, M_AHCI, 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-all
mailing list