diff options
author | Furquan Shaikh <furquan@google.com> | 2020-04-16 23:13:28 -0700 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2020-04-22 18:01:52 +0000 |
commit | 86803784d3a459170a1e73dfbd1ecdcfc0d853d5 (patch) | |
tree | d3012ba615714b7974aab6d8ddd9f86115f4dd46 /src/lib/gpio.c | |
parent | 4cd150f5b530a88aa2778b1f1167e1c191186718 (diff) |
device: Add checks for NULL in device_const.c functions
This change checks to ensure that device/path passed into any of the
functions in device_const.c is not NULL. Since NULL is not expected to
be passed into these functions, this change adds a die() call in case
the assumption is broken.
Change-Id: I1ad8d2bcb9d0546104c5e065af1eeff331cdf96d
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40475
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/lib/gpio.c')
0 files changed, 0 insertions, 0 deletions