git.openpandora.org
/
pandora-kernel.git
/ 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
[pandora-kernel.git]
/
arch
/
alpha
/
kernel
/
core_titan.c
diff --git
a/arch/alpha/kernel/core_titan.c
b/arch/alpha/kernel/core_titan.c
index
7668649
..
219bf27
100644
(file)
--- a/
arch/alpha/kernel/core_titan.c
+++ b/
arch/alpha/kernel/core_titan.c
@@
-757,6
+757,8
@@
titan_agp_info(void)
* Allocate the info structure.
*/
agp = kmalloc(sizeof(*agp), GFP_KERNEL);
+ if (!agp)
+ return NULL;
/*
* Fill it in.