]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: check failover_pending in login response
authorSukadev Bhattiprolu <sukadev@linux.ibm.com>
Wed, 8 Sep 2021 16:58:20 +0000 (09:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Sep 2021 10:26:42 +0000 (12:26 +0200)
commite253c36e15ac784aecaa6e9cfca07b7c21409d79
treed4831f8fc4328759e9a4b5343cdf39e1524a8836
parentf3dfc781dfdb775f7bb8c5f32d3a4d915599a55f
ibmvnic: check failover_pending in login response

commit 273c29e944bda9a20a30c26cfc34c9a3f363280b upstream.

If a failover occurs before a login response is received, the login
response buffer maybe undefined. Check that there was no failover
before accessing the login response buffer.

Fixes: 70ece86a541c ("Driver for IBM System i/p VNIC protocol")
Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/ibm/ibmvnic.c