]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ibmvnic: Fix early release of login buffer
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Thu, 22 Feb 2018 00:18:30 +0000 (18:18 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Feb 2018 19:45:42 +0000 (14:45 -0500)
commita2c0f039bbd0f9ebf375176d05b056e3f3b5c4f7
treeeeabc314339ef97d4912345ecf1f6d0b560e84c8
parent83090e7d35caaabc8daa65fd698275951455bbec
ibmvnic: Fix early release of login buffer

The login buffer is released before the driver can perform
sanity checks between resources the driver requested and what
firmware will provide. Don't release the login buffer until
the sanity check is performed.

Fixes: 34f0f4e3f488 ("ibmvnic: Fix login buffer memory leaks")
Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c