mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
pinctrl: debug: 32bit dump register fail [1/1]
PD#SWPL-212218 Problem: When using debug function to dump 32bit pinctrl registers, panic may occur Solution: use WRITE_ONECE to do assignment. Verify: txhd2_bs311 Change-Id: Ica4db714ac9cdb1f25b8b28bbac5304ec39d7355 Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
This commit is contained in:
committed by
gerrit autosubmit
parent
3d72d61848
commit
26a3437c2e
@@ -1082,7 +1082,10 @@ static __nocfi u32 vaddr_to_paddr(unsigned long vaddr)
|
||||
pgd_f = phys_to_virt(ttbr1_el1);
|
||||
local_init_mm = container_of(&pgd_f, struct mm_struct, pgd);
|
||||
#else
|
||||
local_init_mm = init_task.active_mm;
|
||||
/* local_init_mm may be NULL for compiler optimization */
|
||||
WRITE_ONCE(local_init_mm, init_task.active_mm);
|
||||
if (!local_init_mm)
|
||||
goto failed;
|
||||
#endif
|
||||
/* table walking */
|
||||
pgd = pgd_offset(local_init_mm, vaddr);
|
||||
|
||||
Reference in New Issue
Block a user