arch/alpha/kernel: Add kmalloc NULL tests
[pandora-kernel.git] / arch / alpha / kernel / core_titan.c
index 7668649..219bf27 100644 (file)
@@ -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.