Skip to content
Commit aaa3cbba authored by Qiushi Wu's avatar Qiushi Wu Committed by Enric Balletbo i Serra
Browse files

platform/chrome: cros_ec_ishtp: Fix a double-unlock issue

In function cros_ec_ishtp_probe(), "up_write" is already called
before function "cros_ec_dev_init". But "up_write" will be called
again after the calling of the function "cros_ec_dev_init" failed.
Thus add a call of the function “down_write” in this if branch
for the completion of the exception handling.

Fixes: 26a14267

 ("platform/chrome: Add ChromeOS EC ISHTP driver")
Signed-off-by: default avatarQiushi Wu <wu000273@umn.edu>
Tested-by: default avatarMathew King <mathewk@chromium.org>
Signed-off-by: default avatarEnric Balletbo i Serra <enric.balletbo@collabora.com>
parent 9a876ba5
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