projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8eadfcb
)
nvme-fabrics: Fix a memory leak in an nvmf_create_ctrl() error path
author
Bart Van Assche
<bart.vanassche@sandisk.com>
Tue, 18 Oct 2016 20:11:03 +0000
(13:11 -0700)
committer
Sagi Grimberg
<sagi@grimberg.me>
Tue, 6 Dec 2016 08:17:03 +0000
(10:17 +0200)
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/host/fabrics.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/nvme/host/fabrics.c
b/drivers/nvme/host/fabrics.c
index 12f19c4665cf459ae55481f7cf3e9db932eaabdf..1a68b46fff5a1a1033db3fe177a68c2fbbf8ac37 100644
(file)
--- a/
drivers/nvme/host/fabrics.c
+++ b/
drivers/nvme/host/fabrics.c
@@
-827,8
+827,7
@@
nvmf_create_ctrl(struct device *dev, const char *buf, size_t count)
out_unlock:
mutex_unlock(&nvmf_transports_mutex);
out_free_opts:
- nvmf_host_put(opts->host);
- kfree(opts);
+ nvmf_free_options(opts);
return ERR_PTR(ret);
}