input: touchscreen: mms128: fix allocation size for conf data 03/31203/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 2 Dec 2014 12:48:24 +0000 (21:48 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 2 Dec 2014 12:56:32 +0000 (21:56 +0900)
commit317ece5de9f6aca9089f5b054a2e09000d558f8a
tree6f57305cd84b9f199dcff477cc2aa1ec09eacedb
parent687e6ad9f5edd1c91a75532d4996bcb613a85f29
input: touchscreen: mms128: fix allocation size for conf data

The data in config_fw has header, data blocks and end block. The
data count in the config_fw is the number of data blocks except
end block. Without considering end block, this causes buffer
overflow. So this patch fixes allocation size considering end block.

Change-Id: I053e251a21ba8befb03a1db233e4e2d9dbf1b795
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/input/touchscreen/mms128.c