fix access_ok() arguments according to 5.0.y

This commit is contained in:
Martin Ayotte 2019-03-14 17:10:25 -04:00
parent 53a1237496
commit 0c9efd40a8
4 changed files with 4 additions and 4 deletions

View file

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

View file

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

View file

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

View file

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