powerpc/tm: Fix null pointer deference in flush_hash_page
authorMichael Neuling <mikey@neuling.org>
Thu, 2 May 2013 15:36:14 +0000 (15:36 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 5 May 2013 23:25:36 +0000 (09:25 +1000)
commitc2fd22df89365df9451d5b91da3b7bfd48122ecd
tree2676c8f281258275506b9a6e079d6aca38a23537
parentc4463b3738181f46cf0e4675841d039f3662caf9
powerpc/tm: Fix null pointer deference in flush_hash_page

Make sure that current->thread.reg exists before we deference it in
flush_hash_page.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Reported-by: John J Miller <millerjo@us.ibm.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/hash_utils_64.c