]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/ibmvnic: free reset work of removed device from queue
authorJuliet Kim <julietk@linux.vnet.ibm.com>
Thu, 5 Sep 2019 21:30:01 +0000 (17:30 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Sep 2019 15:36:14 +0000 (17:36 +0200)
commit1c2977c094998de032fee6e898c88b4a05483d08
treea4d731cf3a4108af231517bbe64bb9283ec6a901
parent63b2ed4e10b2e6c913e1d8cdd728e7fba4115a3d
net/ibmvnic: free reset work of removed device from queue

Commit 36f1031c51a2 ("ibmvnic: Do not process reset during or after
 device removal") made the change to exit reset if the driver has been
removed, but does not free reset work items of the adapter from queue.

Ensure all reset work items are freed when breaking out of the loop early.

Fixes: 36f1031c51a2 ("ibmnvic: Do not process reset during or after device removal”)
Signed-off-by: Juliet Kim <julietk@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c