diff options
author | Jacob Garber <jgarber1@ualberta.ca> | 2020-02-01 13:04:11 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-02-03 16:44:57 +0000 |
commit | 4519277ca2e11ed728754efbe13e1a444c479da3 (patch) | |
tree | c8bcf6f104188b16611a1257b2a1c5dcc683785d /src/arch/arm64 | |
parent | e127a8711f71067979211d53d4b855a353344f50 (diff) |
drivers/generic/gfx: Add null pointer error check
acpi_device_scope() will return NULL if it is unable to find the path
of the parent device. Return early if this is the case to prevent a null
pointer dereference.
Change-Id: I3eff1c1e3477c75c7130b52898de7d59692ba412
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Found-by: Coverity CID 1409672
Reviewed-on: https://review.coreboot.org/c/coreboot/+/38669
Reviewed-by: David Hendricks <david.hendricks@gmail.com>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/arch/arm64')
0 files changed, 0 insertions, 0 deletions