aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_drm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_drm.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.c b/drivers/gpu/drm/nouveau/nouveau_drm.c
index e96507e11488..ccae8c26ae2b 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drm.c
+++ b/drivers/gpu/drm/nouveau/nouveau_drm.c
@@ -500,7 +500,7 @@ nouveau_drm_open(struct drm_device *dev, struct drm_file *fpriv)
500 char name[16]; 500 char name[16];
501 int ret; 501 int ret;
502 502
503 snprintf(name, sizeof(name), "%d", fpriv->pid); 503 snprintf(name, sizeof(name), "%d", pid_nr(fpriv->pid));
504 504
505 ret = nouveau_cli_create(pdev, name, sizeof(*cli), (void **)&cli); 505 ret = nouveau_cli_create(pdev, name, sizeof(*cli), (void **)&cli);
506 if (ret) 506 if (ret)