OSDN Git Service

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)
commit8dcb3c7628f19192dd568fbee9094a2d4b14b6af
treee92e2afc46f46c3c89bf9b3b8928480bb14c4b3e
parentdaf6cd0c1829c48cba197bd87d57fc8bf3f65faa
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: 6b0f8f9c52ef ('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