summaryrefslogtreecommitdiffstats
path: root/arch/nds32
diff options
context:
space:
mode:
authorSagi Grimberg <sagi@grimberg.me>2018-06-19 15:34:09 +0300
committerChristoph Hellwig <hch@lst.de>2018-06-20 14:20:10 +0200
commit3d0641015bf73aaa1cb54c936674959e7805070f (patch)
tree5ed6d9e3ded85d03728943f2ab4b10269e3493e0 /arch/nds32
parent9c24c10a2c1e1bb478b6bb70612d9e885aee044f (diff)
downloadlinux-3d0641015bf73aaa1cb54c936674959e7805070f.tar.bz2
nvme-rdma: fix possible double free condition when failing to create a controller
Failures after nvme_init_ctrl will defer resource cleanups to .free_ctrl when the reference is released, hence we should not free the controller queues for these failures. Fix that by moving controller queues allocation before controller initialization and correctly freeing them for failures before initialization and skip them for failures after initialization. Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'arch/nds32')
0 files changed, 0 insertions, 0 deletions