efuse: fix KASAN bug [1/1]

PD#TV-11119

Problem:
BUG: KASAN: stack-out-of-bounds in
meson64_trustzone_efuse+0x168/0x268

Solution:
fix retcnt variable type

Verify:
tl1 skt

Change-Id: I54d9bb598277db539b68f2e741288348eb026e01
Signed-off-by: Zhongfu Luo <zhongfu.luo@amlogic.com>
This commit is contained in:
Zhongfu Luo
2019-10-15 13:49:33 +08:00
committed by Luke Go
parent d58f336aaf
commit fdb67c7098

View File

@@ -185,7 +185,7 @@ ssize_t _efuse_read(char *buf, size_t count, loff_t *ppos)
unsigned int pos = *ppos;
struct efuse_hal_api_arg arg;
unsigned int retcnt;
unsigned long retcnt;
int ret;
arg.cmd = EFUSE_HAL_API_READ;
@@ -208,7 +208,7 @@ ssize_t _efuse_write(const char *buf, size_t count, loff_t *ppos)
unsigned int pos = *ppos;
struct efuse_hal_api_arg arg;
unsigned int retcnt;
unsigned long retcnt;
int ret;
arg.cmd = EFUSE_HAL_API_WRITE;