Plug memory leak to silent Coverity. Error is still not really handled.

Found with:   Coverity Prevent(tm)
CID:          4137
This commit is contained in:
Alexander Motin 2010-06-05 08:21:18 +00:00
parent 8d659f349e
commit de29bf5e98

View File

@ -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 */
}