]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/char/drm/drm_bufs.c
Use helpers to obtain task pid in printks
[mirror_ubuntu-bionic-kernel.git] / drivers / char / drm / drm_bufs.c
index 856774fbe025f17e6f7ed4b3014d2d37e8b08c22..d24a6c2c2c24e10f33d7498fccd30e16a8574ec0 100644 (file)
@@ -1456,7 +1456,7 @@ int drm_freebufs(struct drm_device *dev, void *data,
                buf = dma->buflist[idx];
                if (buf->file_priv != file_priv) {
                        DRM_ERROR("Process %d freeing buffer not owned\n",
-                                 current->pid);
+                                 task_pid_nr(current));
                        return -EINVAL;
                }
                drm_free_buffer(dev, buf);