coreboot-kgpe-d16/util/inteltool
Jacob Garber 94d61ecab0 util/inteltool: Swap conditions to prevent uninit reads
Both values in each array are only initialized if
`two_channels` is true, so we need to check that first.

Found-by: Coverity Scan #1370{584,585,588,589,590-596,600}
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Change-Id: I592bc6ae00f834f74a61668d7a3919014ec635f3
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32269
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
2019-04-11 11:27:11 +00:00
..
Makefile
ahci.c util/inteltool: Add support for Sunrise Point LP 2018-12-28 22:31:54 +00:00
amb.c
cpu.c
description.md
gfx.c
gpio.c inteltool: add 300 and C240 Series PCH 2019-03-15 12:58:28 +00:00
gpio_groups.c inteltool: add 300 and C240 Series PCH 2019-03-15 12:58:28 +00:00
inteltool.8
inteltool.c inteltool: add 300 and C240 Series PCH 2019-03-15 12:58:28 +00:00
inteltool.h inteltool: add 300 and C240 Series PCH 2019-03-15 12:58:28 +00:00
ivy_memory.c util/inteltool: Swap conditions to prevent uninit reads 2019-04-11 11:27:11 +00:00
memory.c util/inteltool: Add support for Sunrise Point LP 2018-12-28 22:31:54 +00:00
pcie.c util/inteltool: Add support for Sunrise Point LP 2018-12-28 22:31:54 +00:00
pcr.c inteltool: add 300 and C240 Series PCH 2019-03-15 12:58:28 +00:00
pcr.h
powermgt.c util/inteltool: Add support for Sunrise Point LP 2018-12-28 22:31:54 +00:00
rootcmplx.c util/inteltool: Add support for Sunrise Point LP 2018-12-28 22:31:54 +00:00
spi.c util/inteltool: Add support for Sunrise Point LP 2018-12-28 22:31:54 +00:00