diff options
author | Sagi Grimberg <sagi@grimberg.me> | 2018-01-14 18:34:22 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-01-15 17:09:32 +0100 |
commit | 423b4487fb23cc9bcbf14f748915bff46151506a (patch) | |
tree | 6e3e3f3451c52fff9bcfeb405d7e5141e7286431 /mm | |
parent | df351ef73789345b4b6c00434c5fd1fca7175643 (diff) | |
download | linux-423b4487fb23cc9bcbf14f748915bff46151506a.tar.bz2 |
nvmet: release a ns reference in nvmet_req_uninit if needed
nvmet_req_init looked up a namespace and took a reference on it (unless it
failed prior to that). If the request is uninitialized (in error cases) we
need to remove that reference in case it was taken, otherwise we leak
namespace reference when calling nvme_req_uninit.
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions