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

Found with:   Coverity Prevent(tm)
CID:          4196
This commit is contained in:
Alexander Motin 2010-06-05 08:16:21 +00:00
parent b136465250
commit 8d659f349e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=208817

View File

@ -1338,6 +1338,7 @@ siis_issue_read_log(device_t dev)
ataio = &ccb->ataio;
ataio->data_ptr = malloc(512, M_SIIS, M_NOWAIT);
if (ataio->data_ptr == NULL) {
xpt_free_ccb(ccb);
device_printf(dev, "Unable allocate memory for READ LOG command");
return; /* XXX */
}