]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vrr: Set VRR capable prop only if it is attached to connector
authorManasi Navare <manasi.d.navare@intel.com>
Fri, 25 Feb 2022 01:30:54 +0000 (17:30 -0800)
committerManasi Navare <manasi.d.navare@intel.com>
Tue, 1 Mar 2022 19:37:21 +0000 (11:37 -0800)
commit42227ea1448114d88dd462bd6fbc6bc615fa0ca4
tree0c3be6ff6c76a49c05b5094f5ed74bb83de0e5bb
parentce8517387e61b3ca0fe820971c43cbc740caba69
drm/vrr: Set VRR capable prop only if it is attached to connector

VRR capable property is not attached by default to the connector
It is attached only if VRR is supported.
So if the driver tries to call drm core set prop function without
it being attached that causes NULL dereference.

Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220225013055.9282-1-manasi.d.navare@intel.com
drivers/gpu/drm/drm_connector.c