projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c616ac2
)
hsi: fix double kfree
author
Geliang Tang
<geliangtang@163.com>
Thu, 1 Oct 2015 14:35:21 +0000
(22:35 +0800)
committer
Sebastian Reichel
<sre@kernel.org>
Wed, 14 Oct 2015 11:22:00 +0000
(13:22 +0200)
When device_register() fails, kfree() is called in hsi_client_release(),
hence there is no need to call kfree in err3 again.
Fixes:
a2aa24734d9db
("HSI: Add common DT binding for HSI client devices")
Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/hsi/hsi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hsi/hsi.c
b/drivers/hsi/hsi.c
index fe9371271ce2420db8ca4d62ce2c6d183219ec2e..35d631e9190801f3f36d7c95a1d790bc02394ace 100644
(file)
--- a/
drivers/hsi/hsi.c
+++ b/
drivers/hsi/hsi.c
@@
-300,7
+300,6
@@
static void hsi_add_client_from_dt(struct hsi_port *port,
if (device_register(&cl->device) < 0) {
pr_err("hsi: failed to register client: %s\n", name);
put_device(&cl->device);
- goto err3;
}
return;