Lijun Pan a0c8be56af ibmvnic: fix login buffer memory leak
Commit 34f0f4e3f488 ("ibmvnic: Fix login buffer memory leaks") frees
login_rsp_buffer in release_resources() and send_login()
because handle_login_rsp() does not free it.
Commit f3ae59c0c015 ("ibmvnic: store RX and TX subCRQ handle array in
ibmvnic_adapter struct") frees login_rsp_buffer in handle_login_rsp().
It seems unnecessary to free it in release_resources() and send_login().
There are chances that handle_login_rsp returns earlier without freeing
buffers. Double-checking the buffer is harmless since
release_login_buffer and release_login_rsp_buffer will
do nothing if buffer is already freed.

Fixes: f3ae59c0c015 ("ibmvnic: store RX and TX subCRQ handle array in ibmvnic_adapter struct")
Fixes: 34f0f4e3f488 ("ibmvnic: Fix login buffer memory leaks")
Signed-off-by: Lijun Pan <ljp@linux.ibm.com>
Link: https://lore.kernel.org/r/20201219213919.21045-1-ljp@linux.ibm.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2020-12-22 18:40:46 -08:00
..
2020-12-15 16:39:06 -08:00
2020-12-17 13:34:25 -08:00
2020-12-16 16:38:41 -08:00
2020-12-17 13:34:25 -08:00
2020-12-16 16:53:54 -08:00
2020-12-15 15:24:52 +01:00
2020-12-16 16:38:41 -08:00
2020-12-15 13:22:29 -08:00
2020-12-17 12:52:23 -08:00
2020-12-16 16:38:41 -08:00
2020-12-15 16:06:14 -08:00
2020-12-16 14:48:32 -08:00
2020-12-16 11:49:46 -08:00
2020-12-16 16:38:41 -08:00
2020-12-15 16:30:31 -08:00
2020-12-16 12:57:51 -08:00
2020-12-16 13:42:26 -08:00
2020-12-16 13:58:47 -08:00
2020-12-09 19:26:02 -06:00
2020-12-16 13:09:32 -08:00
2020-12-16 16:38:41 -08:00
2020-12-16 13:34:31 -08:00
2020-12-17 13:34:25 -08:00
2020-12-15 15:57:25 -08:00
2020-12-16 14:58:35 -08:00
2020-12-22 18:40:46 -08:00
2020-12-16 13:42:26 -08:00
2020-12-15 14:02:26 -08:00
2020-12-15 15:24:52 +01:00
2020-12-16 13:42:26 -08:00
2020-12-15 22:50:12 +11:00
2020-12-16 16:38:41 -08:00
2020-12-16 16:38:41 -08:00
2020-12-16 15:51:15 -08:00
2020-12-17 13:34:25 -08:00
2020-12-17 13:41:27 -08:00
2020-12-10 10:45:36 +01:00
2020-12-16 16:38:41 -08:00
2020-12-16 13:34:31 -08:00
2020-12-16 16:38:41 -08:00
2020-12-17 13:41:27 -08:00
2020-12-17 13:34:25 -08:00
2020-12-16 15:51:15 -08:00
2020-12-15 12:13:37 -08:00
2020-12-17 13:34:25 -08:00
2020-12-09 19:44:34 +01:00
2020-12-16 11:53:09 -08:00