]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm: Check polling initialized before enabling in drm_helper_probe_single_connector_modes
authorShradha Gupta <shradhagupta@linux.microsoft.com>
Fri, 2 Feb 2024 06:43:44 +0000 (22:43 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jun 2024 11:39:53 +0000 (13:39 +0200)
commit2ac168c67267185e7e08c5fe4173bcd049aa4cfe
tree29f4c9ade1d31c02fe9d971a5965d3b91b362d0e
parent786c27982a39d79cc753f84229eb5977ac8ef1c1
drm: Check polling initialized before enabling in drm_helper_probe_single_connector_modes

commit 048a36d8a6085bbd8ab9e5794b713b92ac986450 upstream.

In function drm_helper_probe_single_connector_modes() when we enable
polling again, if it is already uninitialized, a warning is reported.
This patch fixes the warning message by checking if poll is initialized
before enabling it.

Reported-by: kernel test robot <oliver.sang@intel.com>
Closes: https://lore.kernel.org/oe-lkp/202401191128.db8423f1-oliver.sang@intel.com
Signed-off-by: Shradha Gupta <shradhagupta@linux.microsoft.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/1706856224-9725-1-git-send-email-shradhagupta@linux.microsoft.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/drm_probe_helper.c