]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Tue, 18 Feb 2020 13:43:48 +0000 (14:43 +0100)
commit344a4b3bb33683cff5ce2cca7e5d3fa795780c9f
treec442d01135e1934f806f8e1d60f3804ed02cb5d1
parent8a4652d4b103c1f7cf0445356d482b2364062366
HID: hid-bigbenff: call hid_hw_stop() in case of error

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>
drivers/hid/hid-bigbenff.c