audioinfo: fix kasan compile problem [1/1]
authorjiejing.wang <jiejing.wang@amlogic.com>
Thu, 18 Oct 2018 05:19:12 +0000 (13:19 +0800)
committerjiejing.wang <jiejing.wang@amlogic.com>
Thu, 18 Oct 2018 11:04:02 +0000 (19:04 +0800)
PD#173553

Problem:
check stack out of bounds

Solution:
change variable's definition

Verify:
verifyed by r311

Change-Id: Id6efc3ac56b297b6812e2af786732e65867a07da
Signed-off-by: jiejing.wang <jiejing.wang@amlogic.com>
drivers/amlogic/audioinfo/audio_data.c

index c50076c..f5494c3 100644 (file)
@@ -114,7 +114,7 @@ unsigned long audio_info_get(char *buf, unsigned long count,
                                                        unsigned long pos)
 {
        struct efuse_hal_api_arg arg;
-       unsigned int retcnt;
+       unsigned long retcnt;
        int ret;
 
        arg.cmd =  efuse_query_licence_cmd;