diff --git a/patch/kernel/sunxi-dev/wifi-2002-02-rtl8188eu.patch b/patch/kernel/sunxi-dev/wifi-2002-02-rtl8188eu.patch index d356c74bfe..a7e8ec1c35 100644 --- a/patch/kernel/sunxi-dev/wifi-2002-02-rtl8188eu.patch +++ b/patch/kernel/sunxi-dev/wifi-2002-02-rtl8188eu.patch @@ -314183,7 +314183,7 @@ index 0000000000000..b853018434319 + ret = -ENOMEM; + goto exit; + } -+ if (!access_ok(VERIFY_READ, priv_cmd.buf, priv_cmd.total_len)) { ++ if (!access_ok(priv_cmd.buf, priv_cmd.total_len)) { + DBG_88E("%s: failed to access memory\n", __func__); + ret = -EFAULT; + goto exit; 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 6d6724673f..32d96bf43c 100644 --- a/patch/kernel/sunxi-dev/wifi-3002-add-realtek-8189es.patch +++ b/patch/kernel/sunxi-dev/wifi-3002-add-realtek-8189es.patch @@ -346431,7 +346431,7 @@ index 0000000..2d3e214 + goto exit; + } + -+ if (!access_ok(VERIFY_READ, priv_cmd.buf, priv_cmd.total_len)){ ++ if (!access_ok(priv_cmd.buf, priv_cmd.total_len)){ + DBG_871X("%s: failed to access memory\n", __FUNCTION__); + ret = -EFAULT; + goto exit; 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 28cb603774..9c39f49e2a 100644 --- a/patch/kernel/sunxi-dev/wifi-4002-add-realtek-8723cs.patch +++ b/patch/kernel/sunxi-dev/wifi-4002-add-realtek-8723cs.patch @@ -338144,7 +338144,7 @@ index 00000000..8de7ff72 + goto exit; + } + -+ if (!access_ok(VERIFY_READ, priv_cmd.buf, priv_cmd.total_len)){ ++ if (!access_ok(priv_cmd.buf, priv_cmd.total_len)){ + DBG_871X("%s: failed to access memory\n", __FUNCTION__); + ret = -EFAULT; + goto exit; diff --git a/patch/kernel/sunxi-dev/wifi-add-realtek-8189fs.patch b/patch/kernel/sunxi-dev/wifi-add-realtek-8189fs.patch index 15fb95d631..1b567a16a3 100644 --- a/patch/kernel/sunxi-dev/wifi-add-realtek-8189fs.patch +++ b/patch/kernel/sunxi-dev/wifi-add-realtek-8189fs.patch @@ -387624,7 +387624,7 @@ index 0000000..140f22a + goto exit; + } + -+ if (!access_ok(VERIFY_READ, priv_cmd.buf, priv_cmd.total_len)){ ++ if (!access_ok(priv_cmd.buf, priv_cmd.total_len)){ + DBG_871X("%s: failed to access memory\n", __FUNCTION__); + ret = -EFAULT; + goto exit;