aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx4/alias_GUID.c
diff options
context:
space:
mode:
authorPeng Hao <[email protected]>2018-12-29 06:34:12 +0000
committerThomas Gleixner <[email protected]>2019-01-15 10:41:58 +0000
commitbf7d28c53453ea904584960de55e33e03b9d93b1 (patch)
tree64d3ba0f78a21c8db434101fb3e826d3b4c0a192 /drivers/infiniband/hw/mlx4/alias_GUID.c
parentx86/selftests/pkeys: Fork() to check for state being preserved (diff)
downloadkernel-bf7d28c53453ea904584960de55e33e03b9d93b1.tar.gz
kernel-bf7d28c53453ea904584960de55e33e03b9d93b1.zip
x86/mm/mem_encrypt: Fix erroneous sizeof()
Using sizeof(pointer) for determining the size of a memset() only works when the size of the pointer and the size of type to which it points are the same. For pte_t this is only true for 64bit and 32bit-NONPAE. On 32bit PAE systems this is wrong as the pointer size is 4 byte but the PTE entry is 8 bytes. It's actually not a real world issue as this code depends on 64bit, but it's wrong nevertheless. Use sizeof(*p) for correctness sake. Fixes: aad983913d77 ("x86/mm/encrypt: Simplify sme_populate_pgd() and sme_populate_pgd_large()") Signed-off-by: Peng Hao <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: Kirill A. Shutemov <[email protected]> Cc: Tom Lendacky <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/infiniband/hw/mlx4/alias_GUID.c')
0 files changed, 0 insertions, 0 deletions