mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
drm: use ENOMEM for drmm_kzalloc allocation failures
Other callers of drmm_kzalloc already return -ENOMEM on allocation failure. Change EINVAL to ENOMEM for consistency. Signed-off-by: Niels Dossche <dossche.niels@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20220521234104.88410-1-dossche.niels@gmail.com
This commit is contained in:
parent
a67664860f
commit
b981cc333f
1 changed files with 1 additions and 1 deletions
|
@ -226,7 +226,7 @@ void *__drmm_encoder_alloc(struct drm_device *dev, size_t size, size_t offset,
|
|||
|
||||
container = drmm_kzalloc(dev, size, GFP_KERNEL);
|
||||
if (!container)
|
||||
return ERR_PTR(-EINVAL);
|
||||
return ERR_PTR(-ENOMEM);
|
||||
|
||||
encoder = container + offset;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue