OSDN Git Service

HID: sony: fix error path in probe
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Thu, 2 Dec 2021 09:53:31 +0000 (10:53 +0100)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Thu, 2 Dec 2021 14:36:18 +0000 (15:36 +0100)
commit7998193bccc1c6e1537c5f3880fd0d5b949ec9d1
treea6f7d9760a1786cbcf654a43aa78ddffd707833c
parentf237d9028f844a86955fc9da59d7ac4a5c55d7d5
HID: sony: fix error path in probe

When the setup of the GHL fails, we are not calling hid_hw_stop().
This leads to the hidraw node not being released, meaning a crash
whenever somebody attempts to open the file.

Cc: stable@vger.kernel.org
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20211202095334.14399-2-benjamin.tissoires@redhat.com
drivers/hid/hid-sony.c