summaryrefslogtreecommitdiff
path: root/src/drivers/spi/macronix.c
diff options
context:
space:
mode:
authorRyan Salsamendi <rsalsamendi@hotmail.com>2017-07-01 18:21:46 -0700
committerNico Huber <nico.h@gmx.de>2017-07-03 17:15:28 +0000
commit312b23522ad8fa76bc6a79cd87e2b327635edb77 (patch)
tree84ab9beac434284faea62c82d6a395e7e4249b5f /src/drivers/spi/macronix.c
parentfa0725dead0fdc7e9330e77c42ff4ed4b36a89c4 (diff)
cpu/x86/name: Fix undefined behavior
Fixes report found by undefined behavior sanitizer. Dereferencing a pointer that's not aligned to the size of access is undefined behavior. Remove unnecessary memset(). Change-Id: I1362a3eb8c97f5c7e848d75f8d1a219968a7ef9e Signed-off-by: Ryan Salsamendi <rsalsamendi@hotmail.com> Reviewed-on: https://review.coreboot.org/20452 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'src/drivers/spi/macronix.c')
0 files changed, 0 insertions, 0 deletions