Plug memory leak to silent Coverity. Error is still not really handled.
Found with: Coverity Prevent(tm) CID: 4137
This commit is contained in:
parent
8d659f349e
commit
de29bf5e98
@ -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 */
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user