mirror of
https://github.com/Fishwaldo/build.git
synced 2025-07-23 13:29:33 +00:00
fix access_ok() arguments according to 5.0.y
This commit is contained in:
parent
53a1237496
commit
0c9efd40a8
4 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue