Thread (4 messages) 4 messages, 2 authors, 2021-06-02

Re: [PATCH v3 1/2] Input: elants_i2c - Fix NULL dereference at probing

From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2021-06-02 04:14:30
Also in: lkml

On Fri, May 28, 2021 at 09:10:23AM +0200, Takashi Iwai wrote:
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
Cc: <redacted>
Signed-off-by: Takashi Iwai <redacted>
Applied, thank you.

-- 
Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help