diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-07-14 13:07:51 +0800 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-07-14 11:42:53 +0200 |
commit | b30d89d1055f9acd14b5eaf82d8f6a4763e91d85 (patch) | |
tree | 5e261641fd60b9b660ce18e2bd374b1179390df8 /drivers/hid | |
parent | 23c10becdbc712de3fb35d0c7ec105a81d21f4c7 (diff) | |
download | op-kernel-dev-b30d89d1055f9acd14b5eaf82d8f6a4763e91d85.zip op-kernel-dev-b30d89d1055f9acd14b5eaf82d8f6a4763e91d85.tar.gz |
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: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-axff.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hid/hid-axff.c b/drivers/hid/hid-axff.c index b455428..1215141 100644 --- a/drivers/hid/hid-axff.c +++ b/drivers/hid/hid-axff.c @@ -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; } |