coreboot-kgpe-d16/src/lib
Richard Spiegel 4cafc88619 lib/gpio.c: Validate num_gpio
In function _gpio_base3_value(), if num_gpio is 0 it'll cause the return
of an undefined value, as no for loop will be executed. Assert that it's
not 0.

BUG=b:112253891
TEST=Build and boot grunt.

Change-Id: I2b6537900fa41ebbee0171959f3ce236d360bc80
Signed-off-by: Richard Spiegel <richard.spiegel@silverbackltd.com>
Reviewed-on: https://review.coreboot.org/28249
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
2018-08-28 15:36:51 +00:00
..
gnat lib/gnat: Drop Restriction No_Exception_Propagation 2018-05-19 20:39:09 +00:00
b64_decode.c
boot_device.c compiler.h: add __weak macro 2018-04-24 14:37:59 +00:00
bootblock.c Introduce bootblock self-decompression 2018-05-22 02:44:14 +00:00
bootmem.c lib/bootmem.c: Remove unused setting of variable "begin" 2018-08-08 15:28:47 +00:00
bootmode.c
cbfs.c vboot: Fix linking error with USE_OPTION_TABLE enabled 2018-06-28 08:57:05 +00:00
cbmem_common.c compiler.h: add __weak macro 2018-04-24 14:37:59 +00:00
cbmem_console.c
cbmem_stage_cache.c lib/stage_cache: Add save/get raw storage 2018-02-07 16:22:40 +00:00
compute_ip_checksum.c
coreboot_table.c cbtable: remove chromeos_acpi from cbtable 2018-08-22 15:33:50 +00:00
debug.c src: Get rid of device_t 2018-06-14 09:30:24 +00:00
decompressor.c Introduce bootblock self-decompression 2018-05-22 02:44:14 +00:00
delay.c
device_tree.c device_tree/fit: Constify data structures 2018-08-24 11:38:28 +00:00
dimm_info_util.c src/lib/dimm_info_util.c: Add methods to convert from SMBIOS to SPD 2018-04-11 14:41:59 +00:00
edid.c lib/edid.c: Avoid static analysis error for unused value 2018-08-09 08:33:44 +00:00
edid_fill_fb.c
ext_stage_cache.c lib/ext_stage_cache: include prog arg in stage cache metadata 2018-04-24 14:39:36 +00:00
fallback_boot.c compiler.h: add __weak macro 2018-04-24 14:37:59 +00:00
fit.c device_tree/fit: Constify data structures 2018-08-24 11:38:28 +00:00
fit_payload.c device_tree/fit: Constify data structures 2018-08-24 11:38:28 +00:00
fmap.c
gcc.c
gcov-glue.c
gcov-io.c
gcov-io.h
gcov-iov.h
generic_dump_spd.c
gpio.c lib/gpio.c: Validate num_gpio 2018-08-28 15:36:51 +00:00
halt.c
hardwaremain.c compiler.h: add __weak macro 2018-04-24 14:37:59 +00:00
hexdump.c
hexstrtobin.c
hw-time-timer.adb
imd.c
imd_cbmem.c lib/fit_payload: Add coreboot tables support for FDT. 2018-08-22 08:18:54 +00:00
jpeg.c
jpeg.h
Kconfig lib/devicetree: Integrate flattened devicetree support 2018-04-30 09:33:32 +00:00
libgcc.c
libgcov.c {src,util}: Use NULL instead of 0 for pointer 2018-06-11 08:52:08 +00:00
list.c lib/devicetree: Integrate flattened devicetree support 2018-04-30 09:33:32 +00:00
lzma.c lib/lzma: Respect dstn argument 2018-03-26 10:19:11 +00:00
lzmadecode.c lib/lzmadecode.c: : Avoid static analysis error for unused value 2018-08-14 23:24:58 +00:00
lzmadecode.h
Makefile.inc lib: Add FIT payload support 2018-06-19 18:10:05 +00:00
malloc.c
memchr.c
memcmp.c
memcpy.c
memmove.c
memrange.c lib/memrange: Introduce method to clone memrange 2018-04-11 15:11:04 +00:00
memset.c
nhlt.c lib/nhlt: Use common function to set NHLT version 2018-08-27 15:54:34 +00:00
primitive_memtest.c
prog_loaders.c stage_cache: Disable when APCI S3 is not possible 2018-06-27 02:20:11 +00:00
prog_ops.c compiler.h: add __weak macro 2018-04-24 14:37:59 +00:00
program.ld Introduce bootblock self-decompression 2018-05-22 02:44:14 +00:00
ramtest.c {device,drivers,lib,mb,nb}: Use only one space after 'if' 2018-05-09 13:11:04 +00:00
reg_script.c lib/reg_script.c: Remove unused assignment 2017-11-03 07:51:56 +00:00
region_file.c src/lib: Fix typo 2018-08-09 15:56:42 +00:00
reset.c compiler.h: add __weak macro 2018-04-24 14:37:59 +00:00
rmodule.c lib/rmodule: Fix indentation 2018-06-27 02:20:33 +00:00
rmodule.ld src: Fix typo 2018-08-10 21:25:53 +00:00
romstage_handoff.c
romstage_stack.c
rtc.c src/{ec,include,lib}: Use "foo *bar" instead of "foo* bar" 2018-07-09 09:28:35 +00:00
selfboot.c src/{commonlib,lib}: Fix typo 2018-08-16 18:55:08 +00:00
spd_bin.c intel/common/smbus: increase spd read performance 2017-10-31 15:49:55 +00:00
stack.c
thread.c
timer.c src/lib: Remove unneeded 'console.h' include 2018-06-04 08:41:45 +00:00
timer_queue.c
timestamp.c timestamp: Increase max number of timestamps 2018-05-14 07:37:40 +00:00
trace.c
ubsan.c
version.c
wrdd.c compiler.h: add __weak macro 2018-04-24 14:37:59 +00:00