mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Plug memory leak to silent Coverity. Error is still not really handled.
Found with: Coverity Prevent(tm) CID: 4196
This commit is contained in:
parent
b136465250
commit
8d659f349e
1 changed files with 1 additions and 0 deletions
|
|
@ -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 */
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue