]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-tcp: fix possible leakage during error flow
authorMax Gurtovoy <maxg@mellanox.com>
Sun, 13 Oct 2019 16:57:38 +0000 (19:57 +0300)
committerKeith Busch <kbusch@kernel.org>
Tue, 15 Oct 2019 13:47:29 +0000 (22:47 +0900)
commit9e1de3161780847a5fcbab7cde1d3800c5f25a0d
treefdfd9d5ef2bcc7b40dc34324d2f92593fb9b1f49
parentc1466b1c65f7f830f28662c61a22401780d2050e
nvme-tcp: fix possible leakage during error flow

During nvme_tcp_setup_cmd_pdu error flow, one must call nvme_cleanup_cmd
since it's symmetric to nvme_setup_cmd.

Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/tcp.c