From: Axel Lin Date: Thu, 14 Jul 2011 05:07:51 +0000 (+0800) Subject: HID: ACRUX - add missing hid_hw_stop() in ax_probe() error path X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b30d89d1055f9acd14b5eaf82d8f6a4763e91d85;p=openwrt%2Fstaging%2Fblogic.git 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 --- 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; }