diff options
author | Sagi Grimberg <sagi@grimberg.me> | 2018-06-19 15:34:09 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-06-20 14:20:10 +0200 |
commit | 3d0641015bf73aaa1cb54c936674959e7805070f (patch) | |
tree | 5ed6d9e3ded85d03728943f2ab4b10269e3493e0 /LICENSES | |
parent | 9c24c10a2c1e1bb478b6bb70612d9e885aee044f (diff) | |
download | linux-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 'LICENSES')
0 files changed, 0 insertions, 0 deletions