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
Kconfig lib/devicetree: Integrate flattened devicetree support 2018-04-30 09:33:32 +00:00
Makefile.inc lib: Add FIT payload support 2018-06-19 18:10:05 +00:00
b64_decode.c src/lib: Add "int" following "unsigned" 2017-03-09 17:24:17 +01:00
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 bootmode: Get rid of CONFIG_BOOTMODE_STRAPS 2016-07-28 00:36:22 +02:00
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 Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
cbmem_stage_cache.c lib/stage_cache: Add save/get raw storage 2018-02-07 16:22:40 +00:00
compute_ip_checksum.c src/lib: Wrap lines at 80 columns 2017-03-13 17:21:02 +01:00
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 src/lib: Add space before ( 2017-03-09 17:30:21 +01:00
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 lib/edid: Split out fill_lb_framebuffer() 2017-05-30 18:32:44 +02:00
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 lib/fmap: provide RW region device support 2016-08-19 18:17:04 +02:00
gcc.c src/lib: Move asmlinkage before type 2017-03-13 17:21:26 +01:00
gcov-glue.c src/lib: add IS_ENABLED() around Kconfig symbol references 2017-07-06 00:19:37 +00:00
gcov-io.c src/lib: Use tabs instead of spaces 2017-03-13 15:46:02 +01:00
gcov-io.h Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
gcov-iov.h
generic_dump_spd.c src/lib: Add space before ( 2017-03-09 17:30:21 +01:00
gpio.c lib/gpio.c: Validate num_gpio 2018-08-28 15:36:51 +00:00
halt.c src/lib: Fix brace positions 2017-03-13 17:21:16 +01:00
hardwaremain.c compiler.h: add __weak macro 2018-04-24 14:37:59 +00:00
hexdump.c
hexstrtobin.c hexstrtobin: Add a library function to decode ASCII hex into binary 2016-05-21 05:58:51 +02:00
hw-time-timer.adb Hook up libhwbase in ramstage 2016-11-29 23:45:40 +01:00
imd.c Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
imd_cbmem.c lib/fit_payload: Add coreboot tables support for FDT. 2018-08-22 08:18:54 +00:00
jpeg.c src/lib: Fix checkpatch warning: no spaces at the start of a line 2017-07-25 14:26:07 +00:00
jpeg.h src/lib: Wrap lines at 80 columns 2017-03-13 17:21:02 +01: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 src/lib: Wrap lines at 80 columns 2017-03-13 17:21:02 +01:00
malloc.c src/lib: add IS_ENABLED() around Kconfig symbol references 2017-07-06 00:19:37 +00:00
memchr.c
memcmp.c src/lib: Add space before ( 2017-03-09 17:30:21 +01:00
memcpy.c
memmove.c src/lib: Add space before ( 2017-03-09 17:30:21 +01:00
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 src/lib: Add space before ( 2017-03-09 17:30:21 +01:00
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 lib: put romstage_handoff implementation in own compilation unit 2016-12-01 08:16:47 +01:00
romstage_stack.c intel post-car: Increase stacktop alignment 2016-11-18 20:59:12 +01:00
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 src/lib: Wrap lines at 80 columns 2017-03-13 17:21:02 +01:00
thread.c src/lib: Wrap lines at 80 columns 2017-03-13 17:21:02 +01:00
timer.c src/lib: Remove unneeded 'console.h' include 2018-06-04 08:41:45 +00:00
timer_queue.c src/lib: Fix spacing 2017-03-13 17:16:08 +01:00
timestamp.c timestamp: Increase max number of timestamps 2018-05-14 07:37:40 +00:00
trace.c src/lib: Fix checkpatch warnings 2016-09-07 22:28:00 +02:00
ubsan.c src/lib/ubsan: Indent macros to improve readability 2017-09-21 19:46:44 +00:00
version.c lib/version: Correct whitespace alignment 2016-07-15 00:10:50 +02:00
wrdd.c compiler.h: add __weak macro 2018-04-24 14:37:59 +00:00