rtl8188eu: Fix build on kernel 5.1

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2019-03-20 10:38:23 -05:00
parent fca9048241
commit 2243b25597
2 changed files with 3 additions and 6 deletions

View file

@ -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);