Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269282
b: refs/heads/master
c: c91e09b
h: refs/heads/master
v: v3
  • Loading branch information
Mikhail Gruzdev authored and Mike Frysinger committed Oct 25, 2011
1 parent 8f52723 commit c8bcea6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: f8b4392091e1a699a1402b66d578ab9a05bf7d44
refs/heads/master: c91e09b6838f514a9a162a715a75241214258270
6 changes: 3 additions & 3 deletions trunk/arch/blackfin/include/asm/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,17 +195,17 @@ static inline unsigned long __must_check
copy_from_user(void *to, const void __user *from, unsigned long n)
{
if (access_ok(VERIFY_READ, from, n))
memcpy(to, from, n);
memcpy(to, (const void __force *)from, n);
else
return n;
return 0;
}

static inline unsigned long __must_check
copy_to_user(void *to, const void __user *from, unsigned long n)
copy_to_user(void __user *to, const void *from, unsigned long n)
{
if (access_ok(VERIFY_WRITE, to, n))
memcpy(to, from, n);
memcpy((void __force *)to, from, n);
else
return n;
return 0;
Expand Down

0 comments on commit c8bcea6

Please sign in to comment.