]> git.baikalelectronics.ru Git - kernel.git/commit
Input: egalax_ts_serial - fix potential NULL dereference on error
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 19 Dec 2015 17:22:21 +0000 (09:22 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 20 Dec 2015 07:44:40 +0000 (23:44 -0800)
commit40a21f2a99440f643257e3ef1864a3abb3d060ea
treee92e2afc46f46c3c89bf9b3b8928480bb14c4b3e
parent00fe3a52e6c21906474b95e4009cc47859666c18
Input: egalax_ts_serial - fix potential NULL dereference on error

We didn't check input_allocate_device() for failures so it could lead to
a NULL deref.

Fixes: cf2f8957c164 ('Input: add eGalaxTouch serial touchscreen driver')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/egalax_ts_serial.c