]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit946c54a2a221c2b460ea32b1eac04d586efaa86b
treeb079109dfb666197609d64a521950b6b7c90b85b
parent0c3c6f3b53ef7a7d8c1e13b29b00e951387127ac
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 f8de8f17f706 ("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: f8de8f17f706 ("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