Skip to content

Commit c5f2b66

Browse files
committed
Cherrypick 324a27a
DRM_SYSCTL_PRINT fails without the lock (FreeBSDDesktop#170)
1 parent 72300db commit c5f2b66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drm/drm_sysctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,8 @@ static int drm_vblank_info DRM_SYSCTL_HANDLER_ARGS
419419
int retcode;
420420
int i;
421421

422-
DRM_SYSCTL_PRINT("\ncrtc ref count last enabled inmodeset\n");
423422
mutex_lock(&dev->struct_mutex);
423+
DRM_SYSCTL_PRINT("\ncrtc ref count last enabled inmodeset\n");
424424
if (dev->vblank == NULL)
425425
goto done;
426426
for (i = 0 ; i < dev->num_crtcs ; i++) {

0 commit comments

Comments
 (0)