summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSonic Zhang2013-01-31 09:34:53 +0100
committerBob Liu2013-02-20 08:21:23 +0100
commit293be8de49a05ca510069e7ab2d5057c728dd155 (patch)
tree4cc81c9edb1f327669f47cc4df6c15cf7fcf9f0c
parentblackfin: use bitmap library functions (diff)
downloadkernel-qcow2-linux-293be8de49a05ca510069e7ab2d5057c728dd155.tar.gz
kernel-qcow2-linux-293be8de49a05ca510069e7ab2d5057c728dd155.tar.xz
kernel-qcow2-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>
-rw-r--r--arch/blackfin/include/asm/uaccess.h1
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;
}