mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
parisc: Extend disabled preemption in copy_user_page
commit 56008c04eb upstream.
It's always bothered me that we only disable preemption in
copy_user_page around the call to flush_dcache_page_asm.
This patch extends this to after the copy.
Signed-off-by: John David Anglin <dave.anglin@bell.net>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
afe9fc012b
commit
f0d23fa632
@@ -452,8 +452,8 @@ void copy_user_page(void *vto, void *vfrom, unsigned long vaddr,
|
||||
before it can be accessed through the kernel mapping. */
|
||||
preempt_disable();
|
||||
flush_dcache_page_asm(__pa(vfrom), vaddr);
|
||||
preempt_enable();
|
||||
copy_page_asm(vto, vfrom);
|
||||
preempt_enable();
|
||||
}
|
||||
EXPORT_SYMBOL(copy_user_page);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user