Ying Xue f1c8d8cb82 tipc: make media_ptr pointed netdevice valid
The 'media_ptr' pointer in bearer structure which points to network
device, is protected by RCU. So, before netdevice is released,
synchronize_net() should be involved to prevent no any user of
the netdevice on read side from accessing it after it is freed.

Signed-off-by: Ying Xue <ying.xue@windriver.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Reviewed-by: Erik Hugne <erik.hugne@ericsson.com>
Tested-by: Erik Hugne <erik.hugne@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-04-22 21:17:53 -04:00
..
2014-04-22 21:17:53 -04:00
2013-04-17 14:18:33 -04:00
2014-04-22 21:17:53 -04:00
2014-04-22 21:17:53 -04:00
2014-04-22 21:17:53 -04:00
2014-04-22 21:17:53 -04:00
2014-04-22 21:17:53 -04:00