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 treewide: use /usr/bin/env where appropriate 2018-11-17 07:32:03 +00:00
ahci.c util/inteltool: Add support for Sunrise Point LP 2018-12-28 22:31:54 +00:00
amb.c
cpu.c util/inteltool: Add Pentium 4 model f6x 2018-06-04 02:31:51 +00:00
description.md util: Add description.md to each util 2018-07-26 13:26:50 +00:00
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 Use more secure HTTPS URLs for coreboot sites 2017-06-07 12:04:50 +02:00
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 inteltool: Add dumping of full PCR ports 2018-06-11 20:55:06 +00:00
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