projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27029b4
)
nvmet: fix a memory leak
author
Sagi Grimberg
<sagi@grimberg.me>
Thu, 30 Jul 2020 18:51:00 +0000
(11:51 -0700)
committer
Jens Axboe
<axboe@kernel.dk>
Fri, 21 Aug 2020 23:14:27 +0000
(17:14 -0600)
We forgot to free new_model_number
Fixes:
013b7ebe5a0d
("nvmet: make ctrl model configurable")
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/target/configfs.c
patch
|
blob
|
history
diff --git
a/drivers/nvme/target/configfs.c
b/drivers/nvme/target/configfs.c
index
74b2b61
..
37e1d77
100644
(file)
--- a/
drivers/nvme/target/configfs.c
+++ b/
drivers/nvme/target/configfs.c
@@
-1136,6
+1136,7
@@
static ssize_t nvmet_subsys_attr_model_store(struct config_item *item,
up_write(&nvmet_config_sem);
kfree_rcu(new_model, rcuhead);
+ kfree(new_model_number);
return count;
}