projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c73bc70
)
blackfin: sync data in blackfin write buffer
author
Sonic Zhang
<sonic.zhang@analog.com>
Thu, 31 Jan 2013 08:34:53 +0000
(16:34 +0800)
committer
Bob Liu
<lliubbo@gmail.com>
Wed, 20 Feb 2013 07:21:23 +0000
(15:21 +0800)
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>
arch/blackfin/include/asm/uaccess.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/blackfin/include/asm/uaccess.h
b/arch/blackfin/include/asm/uaccess.h
index 461bb542e2e8e9c40d3f07118a62f91f62447815..57701c3b8a591b35b60d88807c1d1f479b018423 100644
(file)
--- 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;
}
This page took
0.02522 seconds
and
5
git commands to generate.