linux-stable/drivers/nvme
Aleksandr Miloserdov 874b65539d nvmet: fix memory leak in nvmet_subsys_attr_model_store_locked
[ Upstream commit becc4cac30 ]

Since model_number is allocated before it needs to be freed before
kmemdump_nul.

Reviewed-by: Konstantin Shelekhin <k.shelekhin@yadro.com>
Reviewed-by: Dmitriy Bogdanov <d.bogdanov@yadro.com>
Signed-off-by: Aleksandr Miloserdov <a.miloserdov@yadro.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-02 17:43:01 +01:00
..
common nvmet-auth: fix a couple of spelling mistakes 2022-08-02 17:22:51 -06:00
host nvme: quiet user passthrough command errors 2022-12-02 17:43:01 +01:00
target nvmet: fix memory leak in nvmet_subsys_attr_model_store_locked 2022-12-02 17:43:01 +01:00
Kconfig nvme: implement In-Band authentication 2022-08-02 17:14:49 -06:00
Makefile nvme: implement In-Band authentication 2022-08-02 17:14:49 -06:00