]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitacee61ba24b6a5ca0e7c5002400330354ff23bed
treec380c0d92571f7c0cb4df031a61ffc20e275d831
parentd13e0d47cdafc2a88fb9dbff56dbf388255cdf54
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: 2b80dfc2ed10 ("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