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

2017-02-01 Thread Jiri Kosina
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 tri

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

2017-02-01 Thread Benjamin Tissoires
On Jan 31 2017 or thereabouts, 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 d

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

2017-01-31 Thread Dmitry Torokhov
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 Tor