sparc64: Fix executable bit testing in set_pmd_at() paths.
authorDavid S. Miller <davem@davemloft.net>
Mon, 21 Apr 2014 01:55:01 +0000 (21:55 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Aug 2014 01:38:24 +0000 (09:38 +0800)
commit24924bc7e27730ce45cfdcda8333249e3af38c41
treeb7ecf060c85c16ed732055c9b163ae84c80caa4e
parent7f6073dcb4268b6a848894c8dd07832b39992375
sparc64: Fix executable bit testing in set_pmd_at() paths.

[ Upstream commit 5b1e94fa439a3227beefad58c28c17f68287a8e9 ]

This code was mistakenly using the exec bit from the PMD in all
cases, even when the PMD isn't a huge PMD.

If it's not a huge PMD, test the exec bit in the individual ptes down
in tlb_batch_pmd_scan().

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/sparc/mm/tlb.c