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:
96eab77
)
greybus: pwm: fix memory leak in error path
author
Johan Hovold
<johan@hovoldconsulting.com>
Tue, 17 Mar 2015 09:55:50 +0000
(10:55 +0100)
committer
Greg Kroah-Hartman
<greg@kroah.com>
Tue, 17 Mar 2015 21:32:58 +0000
(22:32 +0100)
Fix memory leak in connection_init error path.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/pwm.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/greybus/pwm.c
b/drivers/staging/greybus/pwm.c
index e2ab6f5f610e980bb080a8f5c3bf7568bca033e1..3f508bf66ec0835e934218e5aeea2851d02bdea6 100644
(file)
--- a/
drivers/staging/greybus/pwm.c
+++ b/
drivers/staging/greybus/pwm.c
@@
-261,7
+261,7
@@
static int gb_pwm_connection_init(struct gb_connection *connection)
ret = pwmchip_add(pwm);
if (ret) {
pr_err("Failed to register PWM\n");
-
return ret
;
+
goto out_err
;
}
return 0;