aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bitmap.c
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2021-05-31 04:43:36 +0000
committerDmitry Torokhov <[email protected]>2021-05-31 04:53:48 +0000
commitb9c0ebb867d67cc4e9e1a7a2abf0ac9a2cc02051 (patch)
tree22976d83803d6e850ca8d2d2a1c43bca21449dc0 /lib/bitmap.c
parentInput: xpad - map "Select" button on Microsoft Xbox One controller (diff)
downloadkernel-b9c0ebb867d67cc4e9e1a7a2abf0ac9a2cc02051.tar.gz
kernel-b9c0ebb867d67cc4e9e1a7a2abf0ac9a2cc02051.zip
Input: elants_i2c - fix NULL dereference at probing
The recent change in elants_i2c driver to support more chips introduced a regression leading to Oops at probing. The driver reads id->driver_data, but the id may be NULL depending on the device type the driver gets bound. Replace the driver data extraction with the device_get_match_data() helper, and define the driver data in OF table, too. Fixes: 9517b95bdc46 ("Input: elants_i2c - add support for eKTF3624") BugLink: https://bugzilla.suse.com/show_bug.cgi?id=1186454 Signed-off-by: Takashi Iwai <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions