projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
632c6e4
)
driver:gpu: return -ENOMEM on allocation failure.
author
Allen Pais
<allen.lkml@gmail.com>
Wed, 13 Sep 2017 07:32:12 +0000
(13:02 +0530)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Thu, 12 Oct 2017 17:55:21 +0000
(19:55 +0200)
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
drivers/gpu/drm/gma500/mid_bios.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/gma500/mid_bios.c
b/drivers/gpu/drm/gma500/mid_bios.c
index d75ecb3bdee7464d4ce2092c1bebda753b733b84..1fa163373a4713bcf01eb6afc0990ef6bd64b2b5 100644
(file)
--- 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);