summaryrefslogtreecommitdiffstats
path: root/sys/dev/mvs
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2010-06-05 08:21:18 +0000
committermav <mav@FreeBSD.org>2010-06-05 08:21:18 +0000
commitfacac1187d03ba7615c0f08e3461c330b8316e44 (patch)
tree752be583d6e1afec9ed650c7a80c12aaf1285238 /sys/dev/mvs
parentade9ce1cf5dcea2763ab4e539be021566ea085d8 (diff)
downloadFreeBSD-src-facac1187d03ba7615c0f08e3461c330b8316e44.zip
FreeBSD-src-facac1187d03ba7615c0f08e3461c330b8316e44.tar.gz
Plug memory leak to silent Coverity. Error is still not really handled.
Found with: Coverity Prevent(tm) CID: 4137
Diffstat (limited to 'sys/dev/mvs')
-rw-r--r--sys/dev/mvs/mvs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/mvs/mvs.c b/sys/dev/mvs/mvs.c
index 1cc0fae..a7800ec 100644
--- a/sys/dev/mvs/mvs.c
+++ b/sys/dev/mvs/mvs.c
@@ -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 */
}
OpenPOWER on IntegriCloud