From 293be8de49a05ca510069e7ab2d5057c728dd155 Mon Sep 17 00:00:00 2001 From: Sonic Zhang Date: Thu, 31 Jan 2013 16:34:53 +0800 Subject: 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 Signed-off-by: Bob Liu diff --git a/arch/blackfin/include/asm/uaccess.h b/arch/blackfin/include/asm/uaccess.h index 461bb54..57701c3 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; } -- cgit v0.10.2