summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorJohn David Anglin <dave.anglin@bell.net>2022-03-29 21:54:36 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-04-13 21:59:14 +0300
commit93a8347f72c046c1af2bb180867d18c598c20d11 (patch)
tree7603eb8a239d2a40e15d0b406949ac6ee1d6a353 /mm
parentf77f482ec31a1f38eb38079622ca367b4b7d7442 (diff)
downloadlinux-93a8347f72c046c1af2bb180867d18c598c20d11.tar.xz
parisc: Fix patch code locking and flushing
[ Upstream commit a9fe7fa7d874a536e0540469f314772c054a0323 ] This change fixes the following: 1) The flags variable is not initialized. Always use raw_spin_lock_irqsave and raw_spin_unlock_irqrestore to serialize patching. 2) flush_kernel_vmap_range is primarily intended for DMA flushes. Since __patch_text_multiple is often called with interrupts disabled, it is better to directly call flush_kernel_dcache_range_asm and flush_kernel_icache_range_asm. This avoids an extra call. 3) The final call to flush_icache_range is unnecessary. Signed-off-by: John David Anglin <dave.anglin@bell.net> Signed-off-by: Helge Deller <deller@gmx.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions