diff --git a/patch/kernel/sunxi-dev/wifi-3002-add-realtek-8189es.patch b/patch/kernel/sunxi-dev/wifi-3002-add-realtek-8189es.patch index 32d96bf43c..fa5b6df88e 100644 --- a/patch/kernel/sunxi-dev/wifi-3002-add-realtek-8189es.patch +++ b/patch/kernel/sunxi-dev/wifi-3002-add-realtek-8189es.patch @@ -355468,7 +355468,7 @@ index 0000000..a9748ed + ret = PTR_ERR(fp); + } + else { -+ oldfs = get_fs(); set_fs(get_ds()); ++ oldfs = get_fs(); set_fs(KERNEL_DS); + + if(1!=readFile(fp, &buf, 1)) + ret = PTR_ERR(fp); @@ -355496,7 +355496,7 @@ index 0000000..a9748ed + if( 0 == (ret=openFile(&fp,path, O_RDONLY, 0)) ){ + DBG_871X("%s openFile path:%s fp=%p\n",__FUNCTION__, path ,fp); + -+ oldfs = get_fs(); set_fs(get_ds()); ++ oldfs = get_fs(); set_fs(KERNEL_DS); + ret=readFile(fp, buf, sz); + set_fs(oldfs); + closeFile(fp); @@ -355530,7 +355530,7 @@ index 0000000..a9748ed + if( 0 == (ret=openFile(&fp, path, O_CREAT|O_WRONLY, 0666)) ) { + DBG_871X("%s openFile path:%s fp=%p\n",__FUNCTION__, path ,fp); + -+ oldfs = get_fs(); set_fs(get_ds()); ++ oldfs = get_fs(); set_fs(KERNEL_DS); + ret=writeFile(fp, buf, sz); + set_fs(oldfs); + closeFile(fp); diff --git a/patch/kernel/sunxi-dev/wifi-4002-add-realtek-8723cs.patch b/patch/kernel/sunxi-dev/wifi-4002-add-realtek-8723cs.patch index 9c39f49e2a..b19531fc5b 100644 --- a/patch/kernel/sunxi-dev/wifi-4002-add-realtek-8723cs.patch +++ b/patch/kernel/sunxi-dev/wifi-4002-add-realtek-8723cs.patch @@ -347539,7 +347539,7 @@ index 00000000..585dab16 + ret = PTR_ERR(fp); + } + else { -+ oldfs = get_fs(); set_fs(get_ds()); ++ oldfs = get_fs(); set_fs(KERNEL_DS); + + if(1!=readFile(fp, &buf, 1)) + ret = PTR_ERR(fp); @@ -347567,7 +347567,7 @@ index 00000000..585dab16 + if( 0 == (ret=openFile(&fp,path, O_RDONLY, 0)) ){ + DBG_871X("%s openFile path:%s fp=%p\n",__FUNCTION__, path ,fp); + -+ oldfs = get_fs(); set_fs(get_ds()); ++ oldfs = get_fs(); set_fs(KERNEL_DS); + ret=readFile(fp, buf, sz); + set_fs(oldfs); + closeFile(fp); @@ -347601,7 +347601,7 @@ index 00000000..585dab16 + if( 0 == (ret=openFile(&fp, path, O_CREAT|O_WRONLY, 0666)) ) { + DBG_871X("%s openFile path:%s fp=%p\n",__FUNCTION__, path ,fp); + -+ oldfs = get_fs(); set_fs(get_ds()); ++ oldfs = get_fs(); set_fs(KERNEL_DS); + ret=writeFile(fp, buf, sz); + set_fs(oldfs); + closeFile(fp); diff --git a/patch/kernel/sunxi-dev/wifi-add-realtek-8189fs.patch b/patch/kernel/sunxi-dev/wifi-add-realtek-8189fs.patch index 1b567a16a3..f790b2590b 100644 --- a/patch/kernel/sunxi-dev/wifi-add-realtek-8189fs.patch +++ b/patch/kernel/sunxi-dev/wifi-add-realtek-8189fs.patch @@ -397138,7 +397138,7 @@ index 0000000..7079096 + ret = PTR_ERR(fp); + } + else { -+ oldfs = get_fs(); set_fs(get_ds()); ++ oldfs = get_fs(); set_fs(KERNEL_DS); + + if(1!=readFile(fp, &buf, 1)) + ret = PTR_ERR(fp); @@ -397166,7 +397166,7 @@ index 0000000..7079096 + if( 0 == (ret=openFile(&fp,path, O_RDONLY, 0)) ){ + DBG_871X("%s openFile path:%s fp=%p\n",__FUNCTION__, path ,fp); + -+ oldfs = get_fs(); set_fs(get_ds()); ++ oldfs = get_fs(); set_fs(KERNEL_DS); + ret=readFile(fp, buf, sz); + set_fs(oldfs); + closeFile(fp); @@ -397200,7 +397200,7 @@ index 0000000..7079096 + if( 0 == (ret=openFile(&fp, path, O_CREAT|O_WRONLY, 0666)) ) { + DBG_871X("%s openFile path:%s fp=%p\n",__FUNCTION__, path ,fp); + -+ oldfs = get_fs(); set_fs(get_ds()); ++ oldfs = get_fs(); set_fs(KERNEL_DS); + ret=writeFile(fp, buf, sz); + set_fs(oldfs); + closeFile(fp);