aboutsummaryrefslogtreecommitdiff
path: root/drivers/infiniband/ulp/srpt
diff options
context:
space:
mode:
authorSteve Capper <steve.capper@linaro.org>2014-02-25 11:38:53 +0000
committerSteve Capper <steve.capper@linaro.org>2014-03-05 15:04:57 +0800
commit52b07c2707864bd8fa67093912dc6a4d2d602493 (patch)
tree2d28f1cce689b76640a62de4cfe75ad0b099076f /drivers/infiniband/ulp/srpt
parent1c0f6f904655f94757977b647bb99aa15d716eee (diff)
arm64: mm: Add double logical invert to pte accessors
Page table entries on ARM64 are 64 bits, and some pte functions such as pte_dirty return a bitwise-and of a flag with the pte value. If the flag to be tested resides in the upper 32 bits of the pte, then we run into the danger of the result being dropped if downcast. For example: gather_stats(page, md, pte_dirty(*pte), 1); where pte_dirty(*pte) is downcast to an int. This patch adds a double logical invert to all the pte_ accessors to ensure predictable downcasting. Signed-off-by: Steve Capper <steve.capper@linaro.org> Cc: <stable@vger.kernel.org> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'drivers/infiniband/ulp/srpt')
0 files changed, 0 insertions, 0 deletions