caif: fix a potential NULL dereference
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 2 Sep 2011 02:19:23 +0000 (02:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Sep 2011 21:40:34 +0000 (17:40 -0400)
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 <eric.dumazet@gmail.com>
CC: Sjur Brændeland <sjur.brandeland@stericsson.com>
Acked-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found