Re: [PATCH] Input: refuse to register absolute devices without absinfo

From
Jiri Kosina <jikos@kernel.org>
Date
2017-02-01 11:07:26
Also in
lkml
Reply to
Dmitry Torokhov, 2017-01-31
On Tue, 31 Jan 2017, Dmitry Torokhov wrote:
If device is supposed to send absolute events (i.e. EV_ABS bit is set in
dev->evbit) but dev->absinfo is not allocated, then the driver has done
something wrong, and we should not register such device. Otherwise we'll
crash later, when driver tries to send absolute event.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Acked-by: Jiri Kosina <redacted>

Thanks.

-- 
Jiri Kosina
SUSE Labs
Thread (3 messages) 3 messages, 3 authors, last reply 2017-02-01
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help