git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
arch/alpha/kernel: Add kmalloc NULL tests
[safe/jmp/linux-2.6]
/
arch
/
alpha
/
kernel
/
core_marvel.c
diff --git
a/arch/alpha/kernel/core_marvel.c
b/arch/alpha/kernel/core_marvel.c
index
8e059e5
..
53dd2f1
100644
(file)
--- a/
arch/alpha/kernel/core_marvel.c
+++ b/
arch/alpha/kernel/core_marvel.c
@@
-1103,6
+1103,8
@@
marvel_agp_info(void)
* Allocate the info structure.
*/
agp = kmalloc(sizeof(*agp), GFP_KERNEL);
+ if (!agp)
+ return NULL;
/*
* Fill it in.