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
..
2010-09-26 18:29:18 -07:00
2010-08-26 15:18:27 -07:00
2010-10-05 20:35:53 -07:00
2010-07-18 15:07:14 -07:00
2010-06-11 18:37:08 -07:00
2010-09-07 13:57:22 -07:00
2010-06-03 03:21:52 -07:00
2010-05-17 23:23:13 -07:00
2010-04-20 16:37:13 -07:00
2010-09-24 22:26:10 -07:00
2010-10-05 00:40:39 -07:00
2010-09-24 22:26:10 -07:00
2010-05-17 17:39:28 -07:00