diff options
author | Jonathan Gray <jsg@jsg.id.au> | 2013-03-04 23:18:16 +1100 |
---|---|---|
committer | Jonathan Gray <jsg@jsg.id.au> | 2013-03-04 23:18:16 +1100 |
commit | ae2344043ec263ea7494d396074c87696a84594e (patch) | |
tree | 96f8761519016be23415e06aa8af4bbd753145ad /sys | |
parent | 349e6a70c9ddadfe7bc55529e5bb77b01e4e8614 (diff) |
add back some commented locking in drm_mode_setcrtc
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/drm/drm_crtc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/drm_crtc.c b/sys/dev/pci/drm/drm_crtc.c index 83289dda73b..676cd9a8409 100644 --- a/sys/dev/pci/drm/drm_crtc.c +++ b/sys/dev/pci/drm/drm_crtc.c @@ -2020,7 +2020,7 @@ drm_mode_setcrtc(struct drm_device *dev, void *data, if (crtc_req->x > INT_MAX || crtc_req->y > INT_MAX) return ERANGE; -// rw_enter_write(&dev->mode_config.rwl); + rw_enter_write(&dev->mode_config.rwl); obj = drm_mode_object_find(dev, crtc_req->crtc_id, DRM_MODE_OBJECT_CRTC); if (!obj) { @@ -2158,7 +2158,7 @@ out: if (connector_set != NULL) free(connector_set, M_DRM); drm_mode_destroy(dev, mode); -// rw_exit_write(&dev->mode_config.rwl); + rw_exit_write(&dev->mode_config.rwl); return ret; } |