linux-stable/drivers/net/ethernet/ibm
Thomas Falcon 20a8ab744f ibmvnic: Do not attempt to login if RX or TX queues are not allocated
If a device reset fails for some reason, TX and RX queue resources
could be released. If a user attempts to open the device in this scenario,
it may result in a kernel panic as the driver tries to access this
memory. To fix this, include a check before device login that TX/RX
queues are still there before enabling the device. In addition, return a
value that can be checked in case of any errors to avoid waiting for a
completion that will never come.

Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-02-27 14:31:19 -05:00
..
ehea net: Convert to using %pOF instead of full_name 2017-07-24 13:41:48 -07:00
emac Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-01-24 23:44:15 -05:00
ibmveth.c net: ibm: ibmveth: constify vio_device_id 2017-08-17 10:17:31 -07:00
ibmveth.h ibmveth: Support to enable LSO/CSO for Trunk VEA. 2017-05-21 13:29:01 -04:00
ibmvnic.c ibmvnic: Do not attempt to login if RX or TX queues are not allocated 2018-02-27 14:31:19 -05:00
ibmvnic.h ibmvnic: Split counters for scrq/pools/napi 2018-02-22 15:03:45 -05:00
Kconfig Driver for IBM System i/p VNIC protocol 2015-12-28 00:12:13 -05:00
Makefile Driver for IBM System i/p VNIC protocol 2015-12-28 00:12:13 -05:00