nvmet-rdma: fix response use after free
authorIsrael Rukshin <israelr@mellanox.com>
Wed, 5 Dec 2018 16:54:57 +0000 (16:54 +0000)
committerChristoph Hellwig <hch@lst.de>
Fri, 7 Dec 2018 15:11:11 +0000 (07:11 -0800)
commitd7dcdf9d4e15189ecfda24cc87339a3425448d5c
tree640703c9e73ab1e9148be0735e913f382531a45b
parent86880d646122240596d6719b642fee3213239994
nvmet-rdma: fix response use after free

nvmet_rdma_release_rsp() may free the response before using it at error
flow.

Fixes: 8407879 ("nvmet-rdma: fix possible bogus dereference under heavy load")
Signed-off-by: Israel Rukshin <israelr@mellanox.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/rdma.c