]> git.itanic.dy.fi Git - linux-stable/commit
nvme-tcp: Fix a memory leak
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 30 Oct 2023 14:49:28 +0000 (15:49 +0100)
committerKeith Busch <kbusch@kernel.org>
Mon, 6 Nov 2023 16:05:53 +0000 (08:05 -0800)
commit0e32fdd7968eb9a39aa4d4111aef0fda8684af9e
treee97aee3c68b7409e554db523e2b534c4cf4dac31
parent744eac783f9e105358eed05b42dcc5c5789744b3
nvme-tcp: Fix a memory leak

All error handling path end to the error handling path, except this one.
Go to the error handling branch as well here, otherwise 'icreq' and
'icresp' will leak.

Fixes: 2837966ab2a8 ("nvme-tcp: control message handling for recvmsg()")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/tcp.c