summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/drm_managed.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2023-07-21 17:57:49 +0300
committerMaxime Ripard <mripard@kernel.org>2023-07-24 13:48:27 +0300
commitc3f698d85ecaf66d42871865b38c976c128c297c (patch)
treefa5bd77226368659b9d5521ea5b7bf5029a21f3e /drivers/gpu/drm/drm_managed.c
parentd65feac281ab479c679e0d5d2e44c3ac98eb8707 (diff)
downloadlinux-c3f698d85ecaf66d42871865b38c976c128c297c.tar.xz
drm/managed: Clean up GFP_ flag usage in drmm_kmalloc()
This code is not using the correct gfp flags which were passed in. However, this does not affect runtime because kstrdup_const() is a no-op in this context. (It just returns the "kmalloc" string literal without doing an allocation.) Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Signed-off-by: Maxime Ripard <mripard@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/ddf86b59-696a-45f0-96dd-b87aa7b9ab2e@moroto.mountain
Diffstat (limited to 'drivers/gpu/drm/drm_managed.c')
-rw-r--r--drivers/gpu/drm/drm_managed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_managed.c b/drivers/gpu/drm/drm_managed.c
index c21c3f623033..50e2e2ed9d99 100644
--- a/drivers/gpu/drm/drm_managed.c
+++ b/drivers/gpu/drm/drm_managed.c
@@ -196,7 +196,7 @@ void *drmm_kmalloc(struct drm_device *dev, size_t size, gfp_t gfp)
size, gfp);
return NULL;
}
- dr->node.name = kstrdup_const("kmalloc", GFP_KERNEL);
+ dr->node.name = kstrdup_const("kmalloc", gfp);
add_dr(dev, dr);