mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
mana: fix leaking pci resource problem detaching mana deivces
Fixing the error messages when detaching the mana gdma devices showed in dmesg: "Device leaked memory resources". Reported by: NetApp MFC after: 3 days Sponsored by: Microsoft
This commit is contained in:
parent
b00271ceea
commit
47e99e5bc5
1 changed files with 1 additions and 1 deletions
|
|
@ -1562,7 +1562,7 @@ alloc_bar_out:
|
|||
static void
|
||||
mana_gd_free_pci_res(struct gdma_context *gc)
|
||||
{
|
||||
if (!gc || gc->dev)
|
||||
if (!gc || !gc->dev)
|
||||
return;
|
||||
|
||||
if (gc->bar0 != NULL) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue