]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: Call napi_disable instead of napi_enable in failure path
authorNathan Fontenot <nfont@linux.vnet.ibm.com>
Fri, 10 Feb 2017 18:29:06 +0000 (13:29 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 12 Feb 2017 02:24:15 +0000 (21:24 -0500)
commit30b37b652b9cbad3b752f6c14b5a0cc7a2280a84
tree5f380ff43acdf1697d9ce6e672aedb2f3f08cccf
parent993bfa435b0209b77d6f1c19f986bf6b9ab0d77e
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>
drivers/net/ethernet/ibm/ibmvnic.c