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)
commite722af6391949e8851310441bb0cec157d25611d
tree5f380ff43acdf1697d9ce6e672aedb2f3f08cccf
parentdb5d0b597bc27bbddf40f2f8359a73be4eb77104
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