Sensor: sx9325 malloc memory size err.
authorWen Xie <xiewen3@motorola.com>
Thu, 22 Aug 2019 11:29:39 +0000 (19:29 +0800)
committerlingsen1 <lingsen1@lenovo.com>
Sun, 7 Feb 2021 09:37:04 +0000 (17:37 +0800)
commit1538e70950daa0831a3920271e60da1ed3c3bcc3
tree87adb83fc3987db35ceaa0c6ddf632d158f604ce
parent28a83f0ff72bf05416889adb5930ff73f846ff95
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