]> git.baikalelectronics.ru Git - kernel.git/commit
Input: wacom_w8001 - allocate additional space for 'phys'
authorJason Gerecke <killertofu@gmail.com>
Fri, 16 Aug 2019 22:07:15 +0000 (15:07 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 20 Aug 2019 19:03:46 +0000 (12:03 -0700)
commit80d27e382bf6eaa824c467bcc0ed0da651dbaceb
tree86b733ee1b61e70e32d2fe37da4368ed0d660749
parent297e1d00cf14194e74f42f436c81c71dee110c95
Input: wacom_w8001 - allocate additional space for 'phys'

GCC warns that the output of our call to 'snprintf' in 'w8001_connect'
may be truncated since both 'serio->phys' and 'w8001->phys' are 32 bytes
in length. Increase the amount of space allocated for the latter to
compensate.

Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/wacom_w8001.c