diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2013-01-31 09:34:53 +0100 |
---|---|---|
committer | Bob Liu <lliubbo@gmail.com> | 2013-02-20 08:21:23 +0100 |
commit | 293be8de49a05ca510069e7ab2d5057c728dd155 (patch) | |
tree | 4cc81c9edb1f327669f47cc4df6c15cf7fcf9f0c /arch/blackfin | |
parent | blackfin: use bitmap library functions (diff) | |
download | linux-293be8de49a05ca510069e7ab2d5057c728dd155.tar.xz linux-293be8de49a05ca510069e7ab2d5057c728dd155.zip |
blackfin: sync data in blackfin write buffer
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>
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | arch/blackfin/include/asm/uaccess.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/uaccess.h b/arch/blackfin/include/asm/uaccess.h index 461bb542e2e8..57701c3b8a59 100644 --- a/arch/blackfin/include/asm/uaccess.h +++ b/arch/blackfin/include/asm/uaccess.h @@ -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; } |