mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
mtwifi/mt7612e: disable set/get_fs by default (#10930)
This commit is contained in:
parent
53b83ba81a
commit
efb9242261
@ -914,10 +914,14 @@ static inline void __RtmpOSFSInfoChange(OS_FS_INFO * pOSFSInfo, BOOLEAN bSet)
|
|||||||
pOSFSInfo->fsuid = current_fsuid();
|
pOSFSInfo->fsuid = current_fsuid();
|
||||||
pOSFSInfo->fsgid = current_fsgid();
|
pOSFSInfo->fsgid = current_fsgid();
|
||||||
#endif
|
#endif
|
||||||
|
#if 0
|
||||||
pOSFSInfo->fs = get_fs();
|
pOSFSInfo->fs = get_fs();
|
||||||
set_fs(KERNEL_DS);
|
set_fs(KERNEL_DS);
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
|
#if 0
|
||||||
set_fs(pOSFSInfo->fs);
|
set_fs(pOSFSInfo->fs);
|
||||||
|
#endif
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
|
||||||
current->fsuid = pOSFSInfo->fsuid;
|
current->fsuid = pOSFSInfo->fsuid;
|
||||||
current->fsgid = pOSFSInfo->fsgid;
|
current->fsgid = pOSFSInfo->fsgid;
|
||||||
@ -1936,8 +1940,10 @@ VOID RtmpDrvAllMacPrint(
|
|||||||
if (!msg)
|
if (!msg)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
#if 0
|
||||||
orig_fs = get_fs();
|
orig_fs = get_fs();
|
||||||
set_fs(KERNEL_DS);
|
set_fs(KERNEL_DS);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* open file */
|
/* open file */
|
||||||
file_w = filp_open(fileName, O_WRONLY | O_CREAT, 0);
|
file_w = filp_open(fileName, O_WRONLY | O_CREAT, 0);
|
||||||
@ -1965,7 +1971,9 @@ VOID RtmpDrvAllMacPrint(
|
|||||||
}
|
}
|
||||||
filp_close(file_w, NULL);
|
filp_close(file_w, NULL);
|
||||||
}
|
}
|
||||||
|
#if 0
|
||||||
set_fs(orig_fs);
|
set_fs(orig_fs);
|
||||||
|
#endif
|
||||||
os_free_mem(NULL, msg);
|
os_free_mem(NULL, msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1987,8 +1995,10 @@ VOID RtmpDrvAllE2PPrint(
|
|||||||
if (!msg)
|
if (!msg)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
#if 0
|
||||||
orig_fs = get_fs();
|
orig_fs = get_fs();
|
||||||
set_fs(KERNEL_DS);
|
set_fs(KERNEL_DS);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* open file */
|
/* open file */
|
||||||
file_w = filp_open(fileName, O_WRONLY | O_CREAT, 0);
|
file_w = filp_open(fileName, O_WRONLY | O_CREAT, 0);
|
||||||
@ -2017,7 +2027,9 @@ VOID RtmpDrvAllE2PPrint(
|
|||||||
}
|
}
|
||||||
filp_close(file_w, NULL);
|
filp_close(file_w, NULL);
|
||||||
}
|
}
|
||||||
|
#if 0
|
||||||
set_fs(orig_fs);
|
set_fs(orig_fs);
|
||||||
|
#endif
|
||||||
os_free_mem(NULL, msg);
|
os_free_mem(NULL, msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2031,8 +2043,10 @@ VOID RtmpDrvAllRFPrint(
|
|||||||
PSTRING fileName = "RFDump.txt";
|
PSTRING fileName = "RFDump.txt";
|
||||||
mm_segment_t orig_fs;
|
mm_segment_t orig_fs;
|
||||||
|
|
||||||
|
#if 0
|
||||||
orig_fs = get_fs();
|
orig_fs = get_fs();
|
||||||
set_fs(KERNEL_DS);
|
set_fs(KERNEL_DS);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* open file */
|
/* open file */
|
||||||
file_w = filp_open(fileName, O_WRONLY | O_CREAT, 0);
|
file_w = filp_open(fileName, O_WRONLY | O_CREAT, 0);
|
||||||
@ -2048,7 +2062,9 @@ VOID RtmpDrvAllRFPrint(
|
|||||||
}
|
}
|
||||||
filp_close(file_w, NULL);
|
filp_close(file_w, NULL);
|
||||||
}
|
}
|
||||||
|
#if 0
|
||||||
set_fs(orig_fs);
|
set_fs(orig_fs);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user