summaryrefslogtreecommitdiff
path: root/include/keys
diff options
context:
space:
mode:
authorEric Biggers <ebiggers3@gmail.com>2016-01-24 20:08:52 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-01-31 12:06:08 +0100
commit0cb5ae4db47abc3985016aac6326ef98c533fe4d (patch)
tree9dd11be58c58347518a0b8711f0f28431a2ca2ec /include/keys
parent08f39b7bcccb532a6b96fdeaf91ed08e4af7dda4 (diff)
PM / sleep: declare __tracedata symbols as char[] rather than char
commit f97238373b8662a6d580e204df2e7bcbfa43e27a upstream. Accessing more than one byte from a symbol declared simply 'char' is undefined behavior, as reported by UBSAN: UBSAN: Undefined behaviour in drivers/base/power/trace.c:178:18 load of address ffffffff8203fc78 with insufficient space for an object of type 'char' Avoid this by declaring the symbols as arrays. Signed-off-by: Eric Biggers <ebiggers3@gmail.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/keys')
0 files changed, 0 insertions, 0 deletions