Sensor: sx9325 malloc memory size err.
authorWen Xie <xiewen3@motorola.com>
Thu, 22 Aug 2019 11:29:39 +0000 (19:29 +0800)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:59 +0000 (20:23 +0300)
commit128d2694eecd768c26e261f784412fe4c3597b11
tree33b50b1bda732ec951c84c8bf8e6133f951e3311
parent70489ad8f2a2259f87de191aca7b3a5241695257
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