diff options
author | Thomas Falcon <tlfalcon@linux.vnet.ibm.com> | 2018-02-26 18:10:59 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-27 14:31:19 -0500 |
commit | 20a8ab744ff799ccedd35aba0d3139782f341bed (patch) | |
tree | e88319524a271f67a16e70deabe59e37dc942ce6 /drivers/net/ethernet/arc/emac_rockchip.c | |
parent | 0aecb13ce3abe1372c7306c7d1b86ff748296abb (diff) | |
download | linux-20a8ab744ff799ccedd35aba0d3139782f341bed.tar.bz2 |
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>
Diffstat (limited to 'drivers/net/ethernet/arc/emac_rockchip.c')
0 files changed, 0 insertions, 0 deletions