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