tipc: Fix unsafe device list search when enabling bearer
authorAllan Stephens <allan.stephens@windriver.com>
Fri, 27 May 2011 17:59:17 +0000 (13:59 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 18 Sep 2011 02:55:05 +0000 (22:55 -0400)
Ensures that the device list lock is held while trying to locate
the Ethernet device used by a newly enabled bearer, so that the
addition or removal of a device does not cause problems.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/eth_media.c

Simple merge