drm/tests: probe_helper: Fix uninitialized variable
authorMaxime Ripard <maxime@cerno.tech>
Thu, 1 Dec 2022 09:07:36 +0000 (10:07 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 1 Dec 2022 10:13:24 +0000 (11:13 +0100)
commite640e7cc53ea237388759c5d45c7b28503f5c133
tree6db5058cfd04d29947dcdac6b3e169ca01e3c96b
parent0f9aa074c92dd9274b811c1c3fa93736814a4b0d
drm/tests: probe_helper: Fix uninitialized variable

The len variable is used while uninitialized. Initialize it.

Fixes: 1e4a91db109f ("drm/probe-helper: Provide a TV get_modes helper")
Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20221201090736.290935-1-maxime@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/tests/drm_probe_helper_test.c