Skip to content

Commit e5f5f7c

Browse files
Dan Carpentermripard
authored andcommitted
drm/tests: Fix a test in drm_test_check_valid_clones()
The drm_atomic_get_crtc_state() function returns error pointers and not NULL. Update the check to check for error pointers as well as NULL. Fixes: 88849f2 ("drm/tests: Add test for drm_atomic_helper_check_modeset()") Signed-off-by: Dan Carpenter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Maxime Ripard <[email protected]>
1 parent efc84f6 commit e5f5f7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/tests/drm_atomic_state_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ static void drm_test_check_valid_clones(struct kunit *test)
283283
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, state);
284284

285285
crtc_state = drm_atomic_get_crtc_state(state, priv->crtc);
286-
KUNIT_ASSERT_NOT_NULL(test, crtc_state);
286+
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, crtc_state);
287287

288288
crtc_state->encoder_mask = param->encoder_mask;
289289

0 commit comments

Comments
 (0)