mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user