mirror of
https://github.com/opnsense/src.git
synced 2026-02-20 00:11:07 -05:00
xdma: avoid NULL deref in error case
Reported by: Dr Silvio Cesare of InfoSect MFC after: 3 days Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
7e0025dea2
commit
d676fedfbc
1 changed files with 1 additions and 2 deletions
|
|
@ -186,8 +186,7 @@ xchan_bufs_alloc(xdma_channel_t *xchan)
|
|||
xdma = xchan->xdma;
|
||||
|
||||
if (xdma == NULL) {
|
||||
device_printf(xdma->dev,
|
||||
"%s: Channel was not allocated properly.\n", __func__);
|
||||
printf("%s: Channel was not allocated properly.\n", __func__);
|
||||
return (-1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue