drm/tests: Zero initialize fourccs_out
authorArthur Grillo <arthurgrillo@riseup.net>
Fri, 1 Sep 2023 18:52:56 +0000 (15:52 -0300)
committerMaíra Canal <mairacanal@riseup.net>
Fri, 8 Sep 2023 20:38:19 +0000 (17:38 -0300)
commitfb0a84e6de1b6bee0a0649cc7ed768f9ff2496bb
tree9f59e4647e4446661356d0f7875ed2d5d48ad9fd
parentb88c168e6b91eefde1ba4cba19b0f3e3d735c3d2
drm/tests: Zero initialize fourccs_out

fourccs_out array is not initialized. As the
drm_fb_build_fourcc_list() doesn't necessarily change all the array,
and the test compares all of it, the comparison could fail if the
array is not initialized. Zero initialize the array to fix this.

Fixes: 371e0b186a13 ("drm/tests: Add KUnit tests for drm_fb_build_fourcc_list()")
Signed-off-by: Arthur Grillo <arthurgrillo@riseup.net>
Reviewed-by: Maíra Canal <mairacanal@riseup.net>
Signed-off-by: Maíra Canal <mairacanal@riseup.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20230901-zero-init-fourcc-list-test-v1-1-68bc4cc738c8@riseup.net
drivers/gpu/drm/tests/drm_format_helper_test.c