aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/altera-hps2fpga.c
diff options
context:
space:
mode:
authorMichael Davidson <[email protected]>2017-04-14 14:15:09 -0700
committerGreg Kroah-Hartman <[email protected]>2017-04-18 18:03:42 +0200
commit9e18308a5dcc2250a271e598dfe0d917b5522475 (patch)
tree277faf0661876a128d24e7961d19fcc7649b086d /drivers/fpga/altera-hps2fpga.c
parent073a457d9ef46b34127f0bdcb879aaf8674819a5 (diff)
misc: lkdtm: Add volatile to intentional NULL pointer reference
Add a volatile qualifier where a NULL pointer is deliberately dereferenced to trigger a panic. Without the volatile qualifier clang will issue the following warning: "indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference]" and replace the pointer reference with a __builtin_trap() (which generates a ud2 instruction on x86_64). Signed-off-by: Michael Davidson <[email protected]> Signed-off-by: Matthias Kaehlcke <[email protected]> Acked-by: Kees Cook <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/altera-hps2fpga.c')
0 files changed, 0 insertions, 0 deletions