Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 293be8de authored by Sonic Zhang's avatar Sonic Zhang Committed by Bob Liu
Browse files

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: default avatarSonic Zhang <sonic.zhang@analog.com>
Signed-off-by: default avatarBob Liu <lliubbo@gmail.com>
parent c73bc702
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
}