Commit b30d89d1 authored by Axel Lin's avatar Axel Lin Committed by Jiri Kosina

HID: ACRUX - add missing hid_hw_stop() in ax_probe() error path

hid_hw_stop() must be called in ax_probe() error path if hid_hw_start()
was successful.
Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 23c10bec
...@@ -154,6 +154,7 @@ static int ax_probe(struct hid_device *hdev, const struct hid_device_id *id) ...@@ -154,6 +154,7 @@ static int ax_probe(struct hid_device *hdev, const struct hid_device_id *id)
error = hid_hw_open(hdev); error = hid_hw_open(hdev);
if (error) { if (error) {
dev_err(&hdev->dev, "hw open failed\n"); dev_err(&hdev->dev, "hw open failed\n");
hid_hw_stop(hdev);
return error; return error;
} }
......
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