From: Arseny Solokha Date: Fri, 30 Jan 2015 12:08:27 +0000 (+0700) Subject: powerpc/mm: bail out early when flushing TLB page X-Git-Tag: fixes-v4.0-rc1~132^2~5^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0dc294f717d41bfbafc746a7a96a7bc0f114c20c;p=pandora-kernel.git powerpc/mm: bail out early when flushing TLB page MMU_NO_CONTEXT is conditionally defined as 0 or (unsigned int)-1. However, in __flush_tlb_page() a corresponding variable is only tested for open coded 0, which can cause NULL pointer dereference if `mm' argument was legitimately passed as such. Bail out early in case the first argument is NULL, thus eliminate confusion between different values of MMU_NO_CONTEXT and avoid disabling and then re-enabling preemption unnecessarily. Signed-off-by: Arseny Solokha Signed-off-by: Scott Wood --- Reading git-diff-tree failed