linux/net/caif
Eric Dumazet 4fb66b8210 caif: fix a potential NULL dereference
Commit bd30ce4bc0 (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>
2011-09-16 17:40:34 -04:00
..
Kconfig caif: Kconfig and Makefile fixes 2010-06-29 00:06:38 -07:00
Makefile caif: prepare support for namespaces 2011-05-15 17:45:55 -04:00
caif_dev.c caif: fix a potential NULL dereference 2011-09-16 17:40:34 -04:00
caif_socket.c caif: Fixes freeze on Link layer removal. 2011-05-22 20:11:47 -04:00
cfcnfg.c caif: Fixes freeze on Link layer removal. 2011-05-22 20:11:47 -04:00
cfctrl.c caif: Fix freezes when running CAIF loopback device 2011-05-22 20:11:48 -04:00
cfdbgl.c caif: Bugfix for socket priority, bindtodev and dbg channel. 2010-11-03 18:50:03 -07:00
cfdgml.c caif: Don't resend if dev_queue_xmit fails. 2011-04-11 15:08:48 -07:00
cffrml.c caif: Handle dev_queue_xmit errors. 2011-05-15 17:45:56 -04:00
cfmuxl.c caif: Bugfix - XOFF removed channel from caif-mux 2011-06-16 23:59:09 -04:00
cfpkt_skbuff.c caif: remove unesesarry exports 2011-05-15 17:45:56 -04:00
cfrfml.c caif: Move refcount from service layer to sock and dev. 2011-05-15 17:45:55 -04:00
cfserl.c caif: Don't resend if dev_queue_xmit fails. 2011-04-11 15:08:48 -07:00
cfsrvl.c caif: Move refcount from service layer to sock and dev. 2011-05-15 17:45:55 -04:00
cfutill.c caif: Don't resend if dev_queue_xmit fails. 2011-04-11 15:08:48 -07:00
cfveil.c caif: Handle dev_queue_xmit errors. 2011-05-15 17:45:56 -04:00
cfvidl.c caif: Don't resend if dev_queue_xmit fails. 2011-04-11 15:08:48 -07:00
chnl_net.c Remove redundant linux/version.h includes from net/ 2011-06-21 16:03:17 -07:00