]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: check failover_pending in login response
authorSukadev Bhattiprolu <sukadev@linux.ibm.com>
Wed, 8 Sep 2021 05:07:03 +0000 (22:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Sep 2021 10:29:49 +0000 (11:29 +0100)
commit4062fa39e15a38c60a396fce948b85ca65ceee4d
treefa5a7539cfe2fdf711d43054b532c71c8fb8c2c7
parent8b269783e0f214d96e3a6568d4e025baf7c58f06
ibmvnic: check failover_pending in login response

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.

Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c