author | Zhongfu Luo <zhongfu.luo@amlogic.com> | 2019-10-15 05:49:33 (GMT) |
---|---|---|
committer | zihuan.ling <zihuan.ling@amlogic.com> | 2019-10-17 06:06:00 (GMT) |
commit | 2c5bbf780f8b55af0c9185288220af71b3ed70f9 (patch) | |
tree | 639a9bb19df649856d8a65979a15f1b2ca0dd156 | |
parent | 0d50db75aea1500428a13a24e277d97764d759a8 (diff) | |
download | common-2c5bbf780f8b55af0c9185288220af71b3ed70f9.zip common-2c5bbf780f8b55af0c9185288220af71b3ed70f9.tar.gz common-2c5bbf780f8b55af0c9185288220af71b3ed70f9.tar.bz2 |
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>
-rw-r--r-- | drivers/amlogic/efuse/efuse_hw64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/amlogic/efuse/efuse_hw64.c b/drivers/amlogic/efuse/efuse_hw64.c index f739590..98be948 100644 --- a/drivers/amlogic/efuse/efuse_hw64.c +++ b/drivers/amlogic/efuse/efuse_hw64.c @@ -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; |