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

Found with:   Coverity Prevent(tm)
CID:          4130
This commit is contained in:
mav 2010-06-05 08:07:54 +00:00
parent d49dd00196
commit 265a7f94f2

View File

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