diff options
author | Mike Rapoport <rppt@linux.ibm.com> | 2020-05-23 22:57:18 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-05-23 13:59:12 -0700 |
commit | 0cfc8a8d70dcd51db783e8e87917e02149c71458 (patch) | |
tree | 68b7293e8da1f1cdee1f5fb98d44f7ff9453b1c6 /drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c | |
parent | 423b8baf18a8c03f2d6fa99aa447ed0da189bb95 (diff) | |
download | linux-0cfc8a8d70dcd51db783e8e87917e02149c71458.tar.gz linux-0cfc8a8d70dcd51db783e8e87917e02149c71458.tar.bz2 linux-0cfc8a8d70dcd51db783e8e87917e02149c71458.zip |
sparc32: fix page table traversal in srmmu_nocache_init()
The srmmu_nocache_init() uses __nocache_fix() macro to add an offset to
page table entry to access srmmu_nocache_pool.
But since sparc32 has only three actual page table levels, pgd, p4d and
pud are essentially the same thing and pgd_offset() and p4d_offset() are
no-ops, the __nocache_fix() should be done only at PUD level.
Remove __nocache_fix() for p4d_offset() and pud_offset() and keep it
only for PUD and lower levels.
Fixes: c2bc26f7ca1f ("sparc32: use PUD rather than PGD to get PMD in srmmu_nocache_init()")
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Anatoly Pugachev <matorola@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c')
0 files changed, 0 insertions, 0 deletions