mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 22:43:04 +00:00
rtl8188eu: Fix build on kernel 5.1
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
fca9048241
commit
2243b25597
2 changed files with 3 additions and 6 deletions
|
@ -1115,7 +1115,7 @@ static int isFileReadable(const char *path, u32 *sz)
|
|||
ret = PTR_ERR(fp);
|
||||
else {
|
||||
oldfs = get_fs();
|
||||
set_fs(get_ds());
|
||||
set_fs(KERNEL_DS);
|
||||
|
||||
if (1 != readFile(fp, &buf, 1))
|
||||
ret = PTR_ERR(fp);
|
||||
|
@ -1153,7 +1153,7 @@ static int retriveFromFile(const char *path, u8 *buf, u32 sz)
|
|||
RTW_INFO("%s openFile path:%s fp=%p\n", __func__, path , fp);
|
||||
|
||||
oldfs = get_fs();
|
||||
set_fs(get_ds());
|
||||
set_fs(KERNEL_DS);
|
||||
ret = readFile(fp, buf, sz);
|
||||
set_fs(oldfs);
|
||||
closeFile(fp);
|
||||
|
@ -1188,7 +1188,7 @@ static int storeToFile(const char *path, u8 *buf, u32 sz)
|
|||
RTW_INFO("%s openFile path:%s fp=%p\n", __func__, path , fp);
|
||||
|
||||
oldfs = get_fs();
|
||||
set_fs(get_ds());
|
||||
set_fs(KERNEL_DS);
|
||||
ret = writeFile(fp, buf, sz);
|
||||
set_fs(oldfs);
|
||||
closeFile(fp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue