drm/tests: Fix incorrect argument in drm_test_mm_insert_range
While drm_mm test was converted form igt selftest to kunit, unexpected value of "end" argument equal "start" was introduced to one of calls to a function that executes the drm_test_mm_insert_range for specific start/end pair of arguments. As a consequence, DRM_MM_BUG_ON(end <= start) is triggered. Fix it by restoring the original value. Fixes: fc8d29e298cf ("drm: selftest: convert drm_mm selftest to KUnit") Signed-off-by: Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com> Cc: "Maíra Canal" <mairacanal@riseup.net> Cc: Arthur Grillo <arthurgrillo@riseup.net> Cc: Javier Martinez Canillas <javierm@redhat.com> Cc: Daniel Latypov <dlatypov@google.com> Cc: stable@vger.kernel.org # v6.1+ Reviewed-by: Maíra Canal <mairacanal@riseup.net> Signed-off-by: Maíra Canal <mairacanal@riseup.net> Link: https://patchwork.freedesktop.org/patch/msgid/20230911130323.7037-2-janusz.krzysztofik@linux.intel.com
This commit is contained in:
parent
139a27854b
commit
2ba1579839
@ -939,7 +939,7 @@ static void drm_test_mm_insert_range(struct kunit *test)
|
||||
KUNIT_ASSERT_FALSE(test, __drm_test_mm_insert_range(test, count, size, 0, max - 1));
|
||||
KUNIT_ASSERT_FALSE(test, __drm_test_mm_insert_range(test, count, size, 0, max / 2));
|
||||
KUNIT_ASSERT_FALSE(test, __drm_test_mm_insert_range(test, count, size,
|
||||
max / 2, max / 2));
|
||||
max / 2, max));
|
||||
KUNIT_ASSERT_FALSE(test, __drm_test_mm_insert_range(test, count, size,
|
||||
max / 4 + 1, 3 * max / 4 - 1));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user