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)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jun 2024 20:18:55 +0000 (16:18 -0400)
commit8b0ddf19cca2a352b2a7e01d99d3ba949a99c84c
treecdc960c00b1be81d6467e9160948974643decb18
parent8092aa3ab8f7b737a34b71f91492c676a843043a
drm/amd/display: Check BIOS images before it is used

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>
drivers/gpu/drm/amd/display/dc/bios/bios_parser.c