From: Andrew Duggan Date: Thu, 17 Jul 2014 23:14:44 +0000 (-0700) Subject: HID: rmi: check that report ids exist in the report_id_hash before accessing their... X-Git-Tag: cleanup-for-v3.18~99^2^7~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd3edeb6a0267029bc3ffc480fb41dffb9081844;p=pandora-kernel.git 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 Reviewed-by: Benjamin Tissoires Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed