]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
powerpc/pmap: Account for a potential NULL pmap in pmap_sync_icache
authorJustin Hibbits <jhibbits@FreeBSD.org>
Tue, 21 Mar 2023 13:18:18 +0000 (09:18 -0400)
committerJustin Hibbits <jhibbits@FreeBSD.org>
Tue, 21 Mar 2023 13:56:26 +0000 (09:56 -0400)
commit379e14ba6c61634cc1f50272b6f8f147758ec92f
treef88587141aa1e60c687d2d76e1c6f910ad162d99
parentdaa0b64a226031d5f753f96cd5a6fb3234cdd8b1
powerpc/pmap: Account for a potential NULL pmap in pmap_sync_icache

It's apparently possible for pcpu->pc_curpmap to be NULL at some point,
leading to a panic.  Account for this as is done with the other 64-bit
AIM pmap.

Reported by: pkubaj
Tested by: pkubaj
Fixes: 6f0b2a235a1 ("Add pmap_sync_icache() for radix pmap")
MFC after: 3 days
sys/powerpc/aim/mmu_radix.c