]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: Check BIOS images before it is used
authorAlex Hung <alex.hung@amd.com>
Mon, 3 Jun 2024 14:24:13 +0000 (08:24 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 18:51:45 +0000 (19:51 +0100)
commitc5cb98554c4c6265b494d040c1c62f1db2fa28a6
treebe20f4f18eaeca58d2bccf359096caa8183237d7
parentb3cdb9b9f8150170e8a8277302048ba9f60004d8
drm/amd/display: Check BIOS images before it is used

commit 8b0ddf19cca2a352b2a7e01d99d3ba949a99c84c upstream.

BIOS images may fail to load and null checks are added before they are
used.

This fixes 6 NULL_RETURNS issues reported by Coverity.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Keerthana K <keerthana.kalyanasundaram@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/display/dc/bios/bios_parser.c