Files
linux/drivers/net
Arnd Bergmann 564517e804 net/macvtap: fix reference counting
The RCU usage in the original code was broken because
there are cases where we possibly sleep with rcu_read_lock
held. As a fix, change the macvtap_file_get_queue to
get a reference on the socket and the netdev instead of
taking the full rcu_read_lock.

Also, change macvtap_file_get_queue failure case to
not require a subsequent macvtap_file_put_queue, as
pointed out by Ed Swierk.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Ed Swierk <eswierk@aristanetworks.com>
Cc: Sridhar Samudrala <sri@us.ibm.com>
Acked-by: Sridhar Samudrala <sri@us.ibm.com>
Acked-by: Ed Swierk <eswierk@aristanetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-02-15 21:49:49 -08:00
..
2010-02-12 12:28:00 -08:00
2010-02-15 21:49:48 -08:00
2010-01-03 21:42:50 -08:00
2010-02-04 10:23:02 -08:00
2009-09-01 01:13:50 -07:00
2010-02-08 22:44:18 -08:00
2010-01-17 19:16:03 -08:00
2009-08-12 23:03:00 -07:00
2009-08-12 22:53:28 -07:00
2009-11-05 20:00:41 -08:00
2009-11-05 20:00:29 -08:00
2010-01-28 06:01:35 -08:00
2009-10-11 23:30:16 -07:00
2009-10-11 23:30:16 -07:00
2009-11-11 19:22:21 -08:00
2009-10-11 11:20:58 -07:00
2010-01-15 01:48:22 -08:00
2009-09-07 01:56:52 -07:00
2009-11-20 15:35:04 -08:00
2010-02-12 12:15:22 -08:00
2009-10-13 11:48:18 -07:00
2009-10-20 19:11:06 -07:00
2010-01-09 23:00:32 -08:00
2010-02-15 21:49:49 -08:00
2010-01-28 06:01:35 -08:00
2009-12-26 20:38:23 -08:00
2010-02-15 00:07:00 -08:00
2010-01-18 00:29:19 -08:00
2009-10-01 15:14:54 -07:00
2010-02-12 16:21:04 -08:00
2010-02-12 16:21:01 -08:00
2009-12-11 16:16:33 -08:00
2010-02-12 17:05:55 -08:00
2010-01-15 01:43:28 -08:00
2009-11-26 15:51:29 -08:00
2010-02-12 12:27:56 -08:00