Skip to content

Commit

Permalink
HID: ACRUX - add missing hid_hw_stop() in ax_probe() error path
Browse files Browse the repository at this point in the history
hid_hw_stop() must be called in ax_probe() error path if hid_hw_start()
was successful.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Axel Lin authored and Jiri Kosina committed Jul 14, 2011
1 parent 23c10be commit b30d89d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/hid/hid-axff.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ static int ax_probe(struct hid_device *hdev, const struct hid_device_id *id)
error = hid_hw_open(hdev);
if (error) {
dev_err(&hdev->dev, "hw open failed\n");
hid_hw_stop(hdev);
return error;
}

Expand Down

0 comments on commit b30d89d

Please sign in to comment.