From b30d89d1055f9acd14b5eaf82d8f6a4763e91d85 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Thu, 14 Jul 2011 13:07:51 +0800 Subject: [PATCH] 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 Signed-off-by: Jiri Kosina --- drivers/hid/hid-axff.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hid/hid-axff.c b/drivers/hid/hid-axff.c index b4554288de00..121514149e0b 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; } -- GitLab