]> 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)
commitd23600eec852031bc57a34e14cba693d97243b63
tree5f380ff43acdf1697d9ce6e672aedb2f3f08cccf
parent5a1c3ea472e8933d8d23ddc878b82ecf1a69b839
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