Commit 6a80ed4d authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

greybus: pwm: fix memory leak in error path

Fix memory leak in connection_init error path.
Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 96eab779
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment