diff options
author | Allen Pais <allen.lkml@gmail.com> | 2017-09-13 13:02:12 +0530 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-10-12 19:55:21 +0200 |
commit | d9d7a3ef4747ec79854b32b0bd98d2da910c2563 (patch) | |
tree | 2066d9573670beeba58ee991918ef74ffe1069f3 /drivers/gpu/drm/gma500 | |
parent | 632c6e4edef17c40bba3be67c980d959790d142f (diff) | |
download | linux-stable-d9d7a3ef4747ec79854b32b0bd98d2da910c2563.tar.gz linux-stable-d9d7a3ef4747ec79854b32b0bd98d2da910c2563.tar.bz2 linux-stable-d9d7a3ef4747ec79854b32b0bd98d2da910c2563.zip |
driver:gpu: return -ENOMEM on allocation failure.
Signed-off-by: Allen Pais <allen.lkml@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/1505287939-14106-3-git-send-email-allen.lkml@gmail.com
Diffstat (limited to 'drivers/gpu/drm/gma500')
-rw-r--r-- | drivers/gpu/drm/gma500/mid_bios.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/gma500/mid_bios.c b/drivers/gpu/drm/gma500/mid_bios.c index d75ecb3bdee7..1fa163373a47 100644 --- a/drivers/gpu/drm/gma500/mid_bios.c +++ b/drivers/gpu/drm/gma500/mid_bios.c @@ -237,7 +237,7 @@ static int mid_get_vbt_data_r10(struct drm_psb_private *dev_priv, u32 addr) gct = kmalloc(sizeof(*gct) * vbt.panel_count, GFP_KERNEL); if (!gct) - return -1; + return -ENOMEM; gct_virtual = ioremap(addr + sizeof(vbt), sizeof(*gct) * vbt.panel_count); |