linux/net/caif
Eric Dumazet 79315068f4 caif: fix two caif_connect() bugs
caif_connect() might dereference a netdevice after dev_put() it.

It also doesnt check dev_get_by_index() return value and could
dereference a NULL pointer.

Fix it, using RCU to avoid taking a reference.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Sjur Braendeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-10-05 20:35:53 -07:00
..
Kconfig caif: Kconfig and Makefile fixes 2010-06-29 00:06:38 -07:00
Makefile caif: Kconfig and Makefile fixes 2010-06-29 00:06:38 -07:00
caif_config_util.c caif: Add debug connection type for CAIF. 2010-06-20 19:46:07 -07:00
caif_dev.c caif: Use link layer MTU instead of fixed MTU 2010-06-20 19:46:06 -07:00
caif_socket.c caif: fix two caif_connect() bugs 2010-10-05 20:35:53 -07:00
cfcnfg.c caif: Use link layer MTU instead of fixed MTU 2010-06-20 19:46:06 -07:00
cfctrl.c caif: Use link layer MTU instead of fixed MTU 2010-06-20 19:46:06 -07:00
cfdbgl.c caif: Bugfix not all services uses flow-ctrl. 2010-06-20 19:46:05 -07:00
cfdgml.c caif: Use link layer MTU instead of fixed MTU 2010-06-20 19:46:06 -07:00
cffrml.c net-caif: add CAIF core protocol stack 2010-03-30 19:08:46 -07:00
cfmuxl.c caif: Bugfix - missing spin_unlock 2010-05-23 23:57:43 -07:00
cfpkt_skbuff.c caif: Bugfix - Increase default headroom size for control channel. 2010-08-10 16:39:27 -07:00
cfrfml.c net/caif/cfrfml.c: use asm/unaligned.h 2010-08-26 16:11:08 -07:00
cfserl.c caif: Use link layer MTU instead of fixed MTU 2010-06-20 19:46:06 -07:00
cfsrvl.c caif: Use link layer MTU instead of fixed MTU 2010-06-20 19:46:06 -07:00
cfutill.c caif: Use link layer MTU instead of fixed MTU 2010-06-20 19:46:06 -07:00
cfveil.c caif: Use link layer MTU instead of fixed MTU 2010-06-20 19:46:06 -07:00
cfvidl.c caif: Bugfix not all services uses flow-ctrl. 2010-06-20 19:46:05 -07:00
chnl_net.c caif: Use link layer MTU instead of fixed MTU 2010-06-20 19:46:06 -07:00