Skip to content

Commit 6292972

Browse files
author
Manasi Navare
committed
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 <[email protected]> Cc: Ville Syrjälä <[email protected]> Cc: [email protected] Signed-off-by: Manasi Navare <[email protected]> Reviewed-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent cb18527 commit 6292972

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpu/drm/drm_connector.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2330,6 +2330,9 @@ EXPORT_SYMBOL(drm_connector_atomic_hdr_metadata_equal);
23302330
void drm_connector_set_vrr_capable_property(
23312331
struct drm_connector *connector, bool capable)
23322332
{
2333+
if (!connector->vrr_capable_property)
2334+
return;
2335+
23332336
drm_object_property_set_value(&connector->base,
23342337
connector->vrr_capable_property,
23352338
capable);

0 commit comments

Comments
 (0)