Skip to content

Commit

Permalink
blackfin: sync data in blackfin write buffer
Browse files Browse the repository at this point in the history
Sync data in blackfin write buffer to DRAM before return from
copy_to_user.
Otherwise, application may read wrong data from stat syscall occasionally.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
  • Loading branch information
sonicz authored and aet00 committed Feb 20, 2013
1 parent c73bc70 commit 293be8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/blackfin/include/asm/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ copy_to_user(void __user *to, const void *from, unsigned long n)
memcpy((void __force *)to, from, n);
else
return n;
SSYNC();
return 0;
}

Expand Down

0 comments on commit 293be8d

Please sign in to comment.