mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 08:31:13 +00:00
ibmvnic: Call napi_disable instead of napi_enable in failure path
The failure path in ibmvnic_open() mistakenly makes a second call to napi_enable instead of calling napi_disable. This can result in a BUG_ON for any queues that were enabled in the previous call to napi_enable. Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
db5d0b597b
commit
e722af6391
1 changed files with 1 additions and 1 deletions
|
@ -506,7 +506,7 @@ rx_pool_alloc_failed:
|
||||||
adapter->rx_pool = NULL;
|
adapter->rx_pool = NULL;
|
||||||
rx_pool_arr_alloc_failed:
|
rx_pool_arr_alloc_failed:
|
||||||
for (i = 0; i < adapter->req_rx_queues; i++)
|
for (i = 0; i < adapter->req_rx_queues; i++)
|
||||||
napi_enable(&adapter->napi[i]);
|
napi_disable(&adapter->napi[i]);
|
||||||
alloc_napi_failed:
|
alloc_napi_failed:
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue