Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272216
b: refs/heads/master
c: b9c321f
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Linus Torvalds committed Nov 1, 2011
1 parent d9dbece commit 58b1ce0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4e101b0e6aa885f5786a058eefc1ce4b7cc7c44e
refs/heads/master: b9c321fd87b61f70888511d286500519d8b34141
10 changes: 6 additions & 4 deletions trunk/lib/bitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ int __bitmap_parse(const char *buf, unsigned int buflen,
{
int c, old_c, totaldigits, ndigits, nchunks, nbits;
u32 chunk;
const char __user *ubuf = buf;
const char __user __force *ubuf = (const char __user __force *)buf;

bitmap_zero(maskp, nmaskbits);

Expand Down Expand Up @@ -504,7 +504,9 @@ int bitmap_parse_user(const char __user *ubuf,
{
if (!access_ok(VERIFY_READ, ubuf, ulen))
return -EFAULT;
return __bitmap_parse((const char *)ubuf, ulen, 1, maskp, nmaskbits);
return __bitmap_parse((const char __force *)ubuf,
ulen, 1, maskp, nmaskbits);

}
EXPORT_SYMBOL(bitmap_parse_user);

Expand Down Expand Up @@ -594,7 +596,7 @@ static int __bitmap_parselist(const char *buf, unsigned int buflen,
{
unsigned a, b;
int c, old_c, totaldigits;
const char __user *ubuf = buf;
const char __user __force *ubuf = (const char __user __force *)buf;
int exp_digit, in_range;

totaldigits = c = 0;
Expand Down Expand Up @@ -694,7 +696,7 @@ int bitmap_parselist_user(const char __user *ubuf,
{
if (!access_ok(VERIFY_READ, ubuf, ulen))
return -EFAULT;
return __bitmap_parselist((const char *)ubuf,
return __bitmap_parselist((const char __force *)ubuf,
ulen, 1, maskp, nmaskbits);
}
EXPORT_SYMBOL(bitmap_parselist_user);
Expand Down

0 comments on commit 58b1ce0

Please sign in to comment.