projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f49703
)
ARM: OMAP: fix error return code in omap1_system_dma_init()
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Thu, 16 May 2013 18:25:07 +0000
(11:25 -0700)
committer
Tony Lindgren
<tony@atomide.com>
Thu, 16 May 2013 18:25:07 +0000
(11:25 -0700)
Fix to return -ENOMEM in the d->chan alloc error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/dma.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/mach-omap1/dma.c
b/arch/arm/mach-omap1/dma.c
index 68ab858e27b754bea93264889ab9b020cf67d698..a94b3a718d1a771dda53f5e06542fb6a6989cee8 100644
(file)
--- a/
arch/arm/mach-omap1/dma.c
+++ b/
arch/arm/mach-omap1/dma.c
@@
-345,6
+345,7
@@
static int __init omap1_system_dma_init(void)
dev_err(&pdev->dev,
"%s: Memory allocation failed for d->chan!\n",
__func__);
+ ret = -ENOMEM;
goto exit_release_d;
}