diff options
author | Takashi Iwai <[email protected]> | 2021-05-30 21:43:36 -0700 |
---|---|---|
committer | Dmitry Torokhov <[email protected]> | 2021-05-30 21:53:48 -0700 |
commit | b9c0ebb867d67cc4e9e1a7a2abf0ac9a2cc02051 (patch) | |
tree | 22976d83803d6e850ca8d2d2a1c43bca21449dc0 /tools/testing/selftests/bpf/prog_tests | |
parent | 0b1d6c8c00157cbfcf343925c4de81af0187a7b7 (diff) |
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 'tools/testing/selftests/bpf/prog_tests')
0 files changed, 0 insertions, 0 deletions