From: Wang Sheng-Hui Date: Thu, 22 Aug 2013 01:49:42 +0000 (-0400) Subject: tile: add null check for kzalloc in tile/kernel/setup.c X-Git-Tag: v3.12-rc1~120^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d715790ef6b5b903779a14d995ce3d9e680bec0;p=pandora-kernel.git tile: add null check for kzalloc in tile/kernel/setup.c Should check the return value of kzalloc first to avoid the null pointer. Then can dereference the non-null pointer to access the fields of struct resource. Signed-off-by: Wang Sheng-Hui Signed-off-by: Chris Metcalf --- Reading git-diff-tree failed