coreboot/src/soc
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
..
broadcom/cygnus UPSTREAM: soc/broadcom/cygnus: Update DDR Kconfig 2016-11-19 03:17:42 -08:00
dmp/vortex86ex UPSTREAM: src/soc: Capitalize CPU, ACPI, RAM and ROM 2016-08-04 23:37:59 -07:00
imgtec/pistachio UPSTREAM: spi: Get rid of max_transfer_size parameter in spi_slave structure 2016-11-29 17:38:48 -08:00
intel UPSTREAM: soc/intel/skylake: Define early smbus functions 2016-11-29 17:39:04 -08:00
lowrisc/lowrisc UPSTREAM: riscv: add the lowrisc System On Chip support 2016-10-27 12:41:53 -07:00
marvell UPSTREAM: marvell/mvmap2315: Compose BOOTBLOCK region 2016-10-24 23:30:55 -07:00
mediatek/mt8173 UPSTREAM: soc/mediatek/mt8173/spi.c: Change assert to if statement 2016-11-29 17:39:19 -08:00
nvidia UPSTREAM: soc/nvidia/tegra210: Remove CONSOLE_SERIAL_TEGRA210_UART_CHOICES 2016-11-14 19:59:31 -08:00
qualcomm UPSTREAM: spi: Clean up SPI flash driver interface 2016-11-29 17:38:45 -08:00
rdc/r8610 rdc/r8610: Move to src/soc 2016-05-05 20:08:58 +02:00
rockchip UPSTREAM: spi: Clean up SPI flash driver interface 2016-11-29 17:38:45 -08:00
samsung UPSTREAM: soc/samsung/exynos5420/uart.c: Init new serial struct variables 2016-11-29 17:39:14 -08:00
ucb/riscv UPSTREAM: soc/ucb/riscv: select BOOTBLOCK_CONSOLE 2016-08-15 18:36:13 -07:00