Input: atmel_mxt_ts - zero terminate config firmware file
authorNick Dyer <nick.dyer@itdev.co.uk>
Fri, 27 Jul 2018 18:46:46 +0000 (11:46 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 27 Jul 2018 18:59:32 +0000 (11:59 -0700)
commita4891f10583748933a9985fac7aa7c073cc59c85
treecddd2e3676e8b4d73a3013dc83cd729b4970ce86
parentf865df7364c3be0aa1e6f708d246af97c134893f
Input: atmel_mxt_ts - zero terminate config firmware file

We use sscanf to parse the configuration file, so it's necessary to zero
terminate the configuration otherwise a truncated file can cause the
parser to run off into uninitialised memory.

Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/atmel_mxt_ts.c