]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: Return from ibmvnic_resume if not in VNIC_OPEN state
authorJohn Allen <jallen@linux.vnet.ibm.com>
Mon, 19 Jun 2017 16:27:53 +0000 (11:27 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Jun 2017 19:17:01 +0000 (15:17 -0400)
commitb66f2f35009db8f1e46875e7db22680e2738e572
treed13102e582ef560ac840db0366f5954fe7253514
parenteec8b3b6369cb011c7fe527c4d4c8857b8f3391e
ibmvnic: Return from ibmvnic_resume if not in VNIC_OPEN state

If the ibmvnic driver is not in the VNIC_OPEN state, return from
ibmvnic_resume callback. If we are not in the VNIC_OPEN state, interrupts
may not be initialized and directly calling the interrupt handler will
cause a crash.

Signed-off-by: John Allen <jallen@linux.vnet.ibm.com>
Reviewed-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c