diff options
author | Maurizio Lombardi <mlombard@redhat.com> | 2023-11-23 15:07:41 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-01-20 11:51:38 +0100 |
commit | 75cc56afb28b0f113f79d8906f7fed9100cea288 (patch) | |
tree | a594d56d0865e22c0c7e5e554649a15e1c4fc84e /block | |
parent | a47f3a83411f37077f3c3b47ee982af1fab8f909 (diff) | |
download | linux-stable-75cc56afb28b0f113f79d8906f7fed9100cea288.tar.gz linux-stable-75cc56afb28b0f113f79d8906f7fed9100cea288.tar.bz2 linux-stable-75cc56afb28b0f113f79d8906f7fed9100cea288.zip |
nvme-core: fix a memory leak in nvme_ns_info_from_identify()
[ Upstream commit e3139cef8257fcab1725441e2fd5fd0ccb5481b1 ]
In case of error, free the nvme_id_ns structure that was allocated
by nvme_identify_ns().
Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions