summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-ezkey.c
diff options
context:
space:
mode:
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>2019-08-23 22:15:27 +0300
committerJiri Kosina <jkosina@suse.cz>2019-10-01 17:18:35 +0300
commitb3a81c777dcb093020680490ab970d85e2f6f04f (patch)
treef401ae7633a0a0c9b55a74dbd8b8fb37130b9f8c /drivers/hid/hid-ezkey.c
parent1ad0bc78948652edc3067b6b49ba31b1598faa4a (diff)
downloadlinux-b3a81c777dcb093020680490ab970d85e2f6f04f.tar.xz
HID: fix error message in hid_open_report()
On HID report descriptor parsing error the code displays bogus pointer instead of error offset (subtracts start=NULL from end). Make the message more useful by displaying correct error offset and include total buffer size for reference. This was carried over from ancient times - "Fixed" commit just promoted the message from DEBUG to ERROR. Cc: stable@vger.kernel.org Fixes: 8c3d52fc393b ("HID: make parser more verbose about parsing errors by default") Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-ezkey.c')
0 files changed, 0 insertions, 0 deletions