summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2010-06-05 08:16:21 +0000
committermav <mav@FreeBSD.org>2010-06-05 08:16:21 +0000
commitade9ce1cf5dcea2763ab4e539be021566ea085d8 (patch)
tree7f8428e336ceceaf8afb4c5dc666962d42fcc033
parentba504a17ee9289bf2239e34a0ba813f900f17821 (diff)
downloadFreeBSD-src-ade9ce1cf5dcea2763ab4e539be021566ea085d8.zip
FreeBSD-src-ade9ce1cf5dcea2763ab4e539be021566ea085d8.tar.gz
Plug memory leak to silent Coverity. Error is still not really handled.
Found with: Coverity Prevent(tm) CID: 4196
-rw-r--r--sys/dev/siis/siis.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/siis/siis.c b/sys/dev/siis/siis.c
index edb9d12..6b25d4b 100644
--- a/sys/dev/siis/siis.c
+++ b/sys/dev/siis/siis.c
@@ -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 */
}
OpenPOWER on IntegriCloud