diff mbox series

drm/nouveau: avoid client name truncation

Message ID 6535f266a42be470989d7f3b2bd002b1eccdccb9.1539112307.git.mirq-linux@rere.qmqm.pl (mailing list archive)
State New, archived
Headers show
Series drm/nouveau: avoid client name truncation | expand

Commit Message

Michał Mirosław Oct. 9, 2018, 7:14 p.m. UTC
If TASK_COMM_LEN is made bigger DRM client name will be truncated. Avoid that.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
---
 drivers/gpu/drm/nouveau/nouveau_drm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.c b/drivers/gpu/drm/nouveau/nouveau_drm.c
index 74d2283f2c28..b0a3708992fe 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drm.c
+++ b/drivers/gpu/drm/nouveau/nouveau_drm.c
@@ -894,7 +894,7 @@  nouveau_drm_open(struct drm_device *dev, struct drm_file *fpriv)
 {
 	struct nouveau_drm *drm = nouveau_drm(dev);
 	struct nouveau_cli *cli;
-	char name[32], tmpname[TASK_COMM_LEN];
+	char name[TASK_COMM_LEN + 16], tmpname[TASK_COMM_LEN];
 	int ret;
 
 	/* need to bring up power immediately if opening device */