nvme-rdma: Fix error status return in tagset allocation failure
authorSagi Grimberg <sagi@grimberg.me>
Thu, 19 Oct 2017 15:10:53 +0000 (18:10 +0300)
committerChristoph Hellwig <hch@lst.de>
Thu, 19 Oct 2017 15:13:51 +0000 (17:13 +0200)
commitf04b9cc87b5fc466b1b7231ba7b078e885956c5b
treec380c0d92571f7c0cb4df031a61ffc20e275d831
parentbd9f07590a17f3158b51fb869dca723f1f606bdc
nvme-rdma: Fix error status return in tagset allocation failure

We should make sure to escelate allocation failures to prevent a
use-after-free in nvmf_create_ctrl.

Fixes: b28a308ee777 ("nvme-rdma: move tagset allocation to a dedicated routine")
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/rdma.c