[PATCH] powerpc/mm: add sanity check to avoid null pointer dereference

2020-12-29 Thread Defang Bo
Similar to commit<0dc294f717d4>("powerpc/mm: bail out early when flushing TLB page"), there should be a check for 'mm' to prevent Null pointer dereference in case of 'mm' argument was legitimately passed. Signed-off-by: Defang Bo --- arch/powerpc/mm/n

[PATCH] powerpc/mm: avoid null pointer dereference in flush_tlb_mm

2020-12-29 Thread Defang Bo
Similar to commit<0dc294f7>, there should be a check for 'mm' to prevent Null pointer dereference in case of 'mm' argument was legitimately passed. Signed-off-by: Defang Bo --- arch/powerpc/mm/nohash/tlb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch