diff options
author | 2015-01-30 19:08:27 +0700 | |
---|---|---|
committer | 2015-01-30 18:39:00 -0600 | |
commit | 0dc294f717d41bfbafc746a7a96a7bc0f114c20c (patch) | |
tree | fa98880b9e87e95c9b4f94546020df14d95e36e7 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | powerpc: defconfigs: add MTD_SPI_NOR (new dependency for M25P80) (diff) | |
download | linux-dev-0dc294f717d41bfbafc746a7a96a7bc0f114c20c.tar.xz linux-dev-0dc294f717d41bfbafc746a7a96a7bc0f114c20c.zip |
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 <asolokha@kb.kras.ru>
Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions