diff options
Diffstat (limited to 'lib/bitmap.c')
-rw-r--r-- | lib/bitmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bitmap.c b/lib/bitmap.c index eead55aa7170..98872e9025da 100644 --- a/lib/bitmap.c +++ b/lib/bitmap.c | |||
@@ -443,7 +443,7 @@ int bitmap_parse_user(const char __user *ubuf, | |||
443 | unsigned int ulen, unsigned long *maskp, | 443 | unsigned int ulen, unsigned long *maskp, |
444 | int nmaskbits) | 444 | int nmaskbits) |
445 | { | 445 | { |
446 | if (!access_ok(VERIFY_READ, ubuf, ulen)) | 446 | if (!access_ok(ubuf, ulen)) |
447 | return -EFAULT; | 447 | return -EFAULT; |
448 | return __bitmap_parse((const char __force *)ubuf, | 448 | return __bitmap_parse((const char __force *)ubuf, |
449 | ulen, 1, maskp, nmaskbits); | 449 | ulen, 1, maskp, nmaskbits); |
@@ -641,7 +641,7 @@ int bitmap_parselist_user(const char __user *ubuf, | |||
641 | unsigned int ulen, unsigned long *maskp, | 641 | unsigned int ulen, unsigned long *maskp, |
642 | int nmaskbits) | 642 | int nmaskbits) |
643 | { | 643 | { |
644 | if (!access_ok(VERIFY_READ, ubuf, ulen)) | 644 | if (!access_ok(ubuf, ulen)) |
645 | return -EFAULT; | 645 | return -EFAULT; |
646 | return __bitmap_parselist((const char __force *)ubuf, | 646 | return __bitmap_parselist((const char __force *)ubuf, |
647 | ulen, 1, maskp, nmaskbits); | 647 | ulen, 1, maskp, nmaskbits); |