]> 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)
commitbc3b11473f8a8e146c593300ef943a6f198c81d3
treefa5a7539cfe2fdf711d43054b532c71c8fb8c2c7
parent22c0c5bc4ea49c26c27f364648459524646eb1be
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