diff options
author | 2014-07-17 16:14:44 -0700 | |
---|---|---|
committer | 2014-07-29 11:28:49 +0200 | |
commit | dd3edeb6a0267029bc3ffc480fb41dffb9081844 (patch) | |
tree | 85754fa3a11469707d9c67977df1ec7bec6c6c5e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | HID: rmi: change logging level of log messages related to unexpected reports (diff) | |
download | linux-dev-dd3edeb6a0267029bc3ffc480fb41dffb9081844.tar.xz linux-dev-dd3edeb6a0267029bc3ffc480fb41dffb9081844.zip |
HID: rmi: check that report ids exist in the report_id_hash before accessing their size
It is possible that the hid-rmi driver could get loaded onto a device which does not have the
expected report ids. This should not happen because it would indicate that the hid-rmi driver is
not compatible with that device. However, if it does happen it should return an error from probe
instead of dereferencing a null pointer.
related bug:
https://bugzilla.kernel.org/show_bug.cgi?id=80091
Signed-off-by: Andrew Duggan <aduggan@synaptics.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions