From: Eric Dumazet Date: Fri, 2 Sep 2011 02:19:23 +0000 (+0000) Subject: caif: fix a potential NULL dereference X-Git-Tag: v3.1-rc7~25^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fb66b8210c7d7147b164e19b1b44da916a75691;p=pandora-kernel.git caif: fix a potential NULL dereference Commit bd30ce4bc0b7 (caif: Use RCU instead of spin-lock in caif_dev.c) added a potential NULL dereference in case alloc_percpu() fails. caif_device_alloc() can also use GFP_KERNEL instead of GFP_ATOMIC. Signed-off-by: Eric Dumazet CC: Sjur Brændeland Acked-by: Sjur Brændeland Signed-off-by: David S. Miller --- Reading git-diff-tree failed