drm/amd/display: Skip wbscl_set_scaler_filter if filter is null
authorAlex Hung <alex.hung@amd.com>
Mon, 3 Jun 2024 16:47:37 +0000 (10:47 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jun 2024 20:18:55 +0000 (16:18 -0400)
commitc4d31653c03b90e51515b1380115d1aedad925dd
tree11babe36846f86565f2ef6cb22b752343ec6970e
parent8b0ddf19cca2a352b2a7e01d99d3ba949a99c84c
drm/amd/display: Skip wbscl_set_scaler_filter if filter is null

Callers can pass null in filter (i.e. from returned from the function
wbscl_get_filter_coeffs_16p) and a null check is added to ensure that is
not the case.

This fixes 4 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/dcn20/dcn20_dwb_scl.c