mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-24 11:20:12 +01:00
modesetting-101: Only store property value when set_property was successful.
This commit is contained in:
parent
f1e4785d4c
commit
e51cd78cac
1 changed files with 3 additions and 3 deletions
|
|
@ -2184,12 +2184,12 @@ int drm_mode_connector_property_set_ioctl(struct drm_device *dev,
|
|||
}
|
||||
}
|
||||
|
||||
/* store the property value */
|
||||
drm_connector_property_set_value(connector, property, out_resp->value);
|
||||
|
||||
if (connector->funcs->set_property)
|
||||
ret = connector->funcs->set_property(connector, property, out_resp->value);
|
||||
|
||||
/* store the property value if succesful */
|
||||
if (!ret)
|
||||
drm_connector_property_set_value(connector, property, out_resp->value);
|
||||
out:
|
||||
mutex_unlock(&dev->mode_config.mutex);
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue