summaryrefslogtreecommitdiff
path: root/lib/locking-selftest-spin-softirq.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2021-05-31 07:43:36 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2021-05-31 07:53:48 +0300
commitb9c0ebb867d67cc4e9e1a7a2abf0ac9a2cc02051 (patch)
tree22976d83803d6e850ca8d2d2a1c43bca21449dc0 /lib/locking-selftest-spin-softirq.h
parent0b1d6c8c00157cbfcf343925c4de81af0187a7b7 (diff)
downloadlinux-b9c0ebb867d67cc4e9e1a7a2abf0ac9a2cc02051.tar.xz
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 <tiwai@suse.de> Cc: <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20210528071024.26450-1-tiwai@suse.de Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'lib/locking-selftest-spin-softirq.h')
0 files changed, 0 insertions, 0 deletions