Sensor: sx9325 malloc memory size err.
authorWen Xie <xiewen3@motorola.com>
Thu, 22 Aug 2019 11:29:39 +0000 (19:29 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:32:10 +0000 (17:32 +0800)
commitc03f0242c2ff1a4bc19be11b1c8ec84fdec9e062
tree4c63cc678272e7c66da20d205f301e3c376405a5
parent6cec7203fcf9cb50bf35e1896bb1671bc203ffc9
Sensor: sx9325 malloc memory size err.

The parameter of sizeof is the structure pointer,
so the allocation size is 8,which leads memory crossing the boundary.

Change-Id: I04e19739b378a948e6ae681e45bcfdacc07ff16c
Signed-off-by: Wen Xie <xiewen3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1407951
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
drivers/input/misc/sx9325_sar.c