]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net-sysfs: Use rtnl_trylock in wireless sysfs methods.
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 19 Feb 2010 13:23:47 +0000 (13:23 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 15 Mar 2010 15:49:38 +0000 (08:49 -0700)
commit9c42239c50d46364aecf2d5b6a927464a52e2723
treeb69ec72bd85c69e706dcfae7a1dddc352898fc7d
parent7ee8af9de5b806144734e2bfbbd9eccf5aecb374
net-sysfs: Use rtnl_trylock in wireless sysfs methods.

[ Upstream commit b8afe6416101549e877f8470f2a160df69676166 ]

The wireless sysfs methods like the rest of the networking sysfs
methods are removed with the rtnl_lock held and block until
the existing methods stop executing.  So use rtnl_trylock
and restart_syscall so that the code continues to work.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/core/net-sysfs.c