wifi: fix selinux error [1/1]
authorlibo <bo.li@amlogic.com>
Fri, 12 Apr 2019 02:33:16 +0000 (10:33 +0800)
committerlibo <bo.li@amlogic.com>
Fri, 12 Apr 2019 02:36:18 +0000 (10:36 +0800)
PD#SWPL-5893

Problem:
selinux error

Solution:
fix it

Verify:
test pass on x301

Change-Id: Ib943b51a340f066b53032c2129e442de39110cea
Signed-off-by: libo <bo.li@amlogic.com>
bcmdhd.100.10.315.x/dhd_linux.c

index 18a3684222d9c4f5ee13e53a2d2f4df51a130c29..cc8194367859007b40ceae593abbc0a676e63619 100644 (file)
@@ -18455,6 +18455,11 @@ void dhd_get_memdump_info(dhd_pub_t *dhd)
        int ret = 0;
        char *filepath = MEMDUMPINFO;
 
+#if !defined(CONFIG_X86)
+       mem_val = DUMP_DISABLED;
+       goto done;
+#endif
+
        /* Read memdump info from the file */
        fp = filp_open(filepath, O_RDONLY, 0);
        if (IS_ERR(fp)) {