HID: hid-bigbenff: call hid_hw_stop() in case of error
authorHanno Zulla <kontakt@hanno.de>
Tue, 18 Feb 2020 11:38:34 +0000 (12:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Mar 2020 07:11:49 +0000 (08:11 +0100)
commitccb747d805d3552e99019e3f8b9c2a28e75cacdf
tree18ddd545507d223c812509020079395394acbbbb
parent1bc271dd397d1f7a74ae4511019bf83f678f2960
HID: hid-bigbenff: call hid_hw_stop() in case of error

[ Upstream commit 976a54d0f4202cb412a3b1fc7f117e1d97db35f3 ]

It's required to call hid_hw_stop() once hid_hw_start() was called
previously, so error cases need to handle this. Also, hid_hw_close() is
not necessary during removal.

Signed-off-by: Hanno Zulla <kontakt@hanno.de>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-bigbenff.c