mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 12:14:06 +00:00
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
This commit is contained in:
parent
d65feac281
commit
c3f698d85e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue