projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5359dff
)
arch/ia64/kernel/iosapic: missing test after ioremap()
author
Roel Kluin
<[roel.kluin@gmail.com]>
Tue, 11 Aug 2009 21:52:11 +0000
(14:52 -0700)
committer
Fenghua Yu
<fenghua.yu@intel.com>
Tue, 11 Aug 2009 21:52:11 +0000
(14:52 -0700)
Missing test after ioremap()
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Fenghua Yu <fenghua.yu@intel.com>
arch/ia64/kernel/iosapic.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/ia64/kernel/iosapic.c
b/arch/ia64/kernel/iosapic.c
index c48b03f2b61dd30aaf22da1fcec101d59fd0b426..dab4d393908c6323279ea61e1443f0e31961834f 100644
(file)
--- a/
arch/ia64/kernel/iosapic.c
+++ b/
arch/ia64/kernel/iosapic.c
@@
-1072,6
+1072,10
@@
iosapic_init (unsigned long phys_addr, unsigned int gsi_base)
}
addr = ioremap(phys_addr, 0);
+ if (addr == NULL) {
+ spin_unlock_irqrestore(&iosapic_lock, flags);
+ return -ENOMEM;
+ }
ver = iosapic_version(addr);
if ((err = iosapic_check_gsi_range(gsi_base, ver))) {
iounmap(addr);