coreboot/src
Martin Roth ab4e7f6526 UPSTREAM: soc/mediatek/mt8173/spi.c: Change assert to if statement
Asserts are only fatal if CONFIG_FATAL_ASSERTS is enabled in Kconfig.
By default this is disabled, so the assert is generally just a printf.

Die if someone decides to pass in an invalid bus number for some reason.

Addresses coverity issue 1349858 - Out-of-bounds read

Signed-off-by: Martin Roth <martinroth@google.com>
BUG=None
BRANCH=None
TEST=None

Reviewed-on: https://review.coreboot.org/17484
Reviewed-by: Nico Huber <nico.h@gmx.de>

Change-Id: I9d79bc336cbbfde31f655cfd271f101e7a90ab1b
Reviewed-on: https://chromium-review.googlesource.com/415068
Commit-Ready: Aaron Durbin <adurbin@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2016-11-29 17:39:19 -08:00
..
acpi UPSTREAM: src/acpi: Capitalize ACPI and SATA 2016-08-04 23:37:57 -07:00
arch UPSTREAM: arch/x86: don't create new gdt in cbmem for relocatable ramstage 2016-11-29 03:22:17 -08:00
commonlib UPSTREAM: commonlib/include: remove NEED_VB20_INTERNALS 2016-11-21 11:53:31 -08:00
console UPSTREAM: console/vtxprintf.c: cast precision to size_t for string length 2016-11-29 17:38:21 -08:00
cpu UPSTREAM: cpu/allwinner/a10/uart_console.c: Init new serial struct variables 2016-11-29 17:39:12 -08:00
device UPSTREAM: device/dram/ddr3: Fix calculation CRC16 of SPD 2016-11-21 11:54:09 -08:00
drivers UPSTREAM: spi: Get rid of flash_programmer_probe in spi_slave structure 2016-11-29 17:38:50 -08:00
ec google/chromeec: Add command to control USB PD role 2016-11-22 18:36:43 -08:00
include UPSTREAM: AGESA binaryPI: Fix PCI ID namespace 2016-11-29 17:39:07 -08:00
lib UPSTREAM: intel post-car: Increase stacktop alignment 2016-11-21 11:53:20 -08:00
mainboard UPSTREAM: google/pyro: Update DPTF settings 2016-11-29 17:39:00 -08:00
northbridge UPSTREAM: nb/intel/i82810: Make sure DIMM size isn't negative 2016-11-29 17:39:16 -08:00
soc UPSTREAM: soc/mediatek/mt8173/spi.c: Change assert to if statement 2016-11-29 17:39:19 -08:00
southbridge UPSTREAM: AGESA binaryPI: Fix PCI ID namespace 2016-11-29 17:39:07 -08:00
superio UPSTREAM: smscsuperio: map interrupt in smscsuperio_enable_serial() 2016-11-29 17:38:07 -08:00
vboot UPSTREAM: commonlib/include: remove NEED_VB20_INTERNALS 2016-11-21 11:53:31 -08:00
vendorcode UPSTREAM: src/vendorcode/amd/agesa: Fix casting 2016-11-29 17:38:55 -08:00
Kconfig UPSTREAM: Remove explicit select MMCONF_SUPPORT 2016-11-29 17:38:33 -08:00