mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
greybus: pwm: fix memory leak in error path
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>
This commit is contained in:
parent
96eab779e1
commit
6a80ed4d2c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue