ibmvnic: Free rwi on reset success
authorNick Child <nnac123@linux.ibm.com>
Mon, 31 Oct 2022 15:06:42 +0000 (10:06 -0500)
committerJakub Kicinski <kuba@kernel.org>
Thu, 3 Nov 2022 03:30:51 +0000 (20:30 -0700)
commitd6dd2fe71153f0ff748bf188bd4af076fe09a0a6
treeb079109dfb666197609d64a521950b6b7c90b85b
parent40e4eb324c59e11fcb927aa46742d28aba6ecb8a
ibmvnic: Free rwi on reset success

Free the rwi structure in the event that the last rwi in the list
processed successfully. The logic in commit 4f408e1fa6e1 ("ibmvnic:
retry reset if there are no other resets") introduces an issue that
results in a 32 byte memory leak whenever the last rwi in the list
gets processed.

Fixes: 4f408e1fa6e1 ("ibmvnic: retry reset if there are no other resets")
Signed-off-by: Nick Child <nnac123@linux.ibm.com>
Link: https://lore.kernel.org/r/20221031150642.13356-1-nnac123@linux.ibm.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ibm/ibmvnic.c