summaryrefslogtreecommitdiff
path: root/drivers/hsi
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@163.com>2015-10-01 22:35:21 +0800
committerSebastian Reichel <sre@kernel.org>2015-10-14 13:22:00 +0200
commitf098a045350ecd6045f2f2d5a50fecf2a98962d7 (patch)
treec28faea124ce2751d47b637d3bd38390269758c0 /drivers/hsi
parentc616ac28a5b392a03eaa1bbab2bdb1d8931cfdb8 (diff)
hsi: fix double kfree
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>
Diffstat (limited to 'drivers/hsi')
-rw-r--r--drivers/hsi/hsi.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/hsi/hsi.c b/drivers/hsi/hsi.c
index fe9371271ce2..35d631e91908 100644
--- 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;