]> git.baikalelectronics.ru Git - kernel.git/commit
[TUN]: Fix RTNL-locking in tun/tap driver
authorKim B. Heino <Kim.Heino@bluegiga.com>
Fri, 29 Feb 2008 20:26:21 +0000 (12:26 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Feb 2008 20:26:21 +0000 (12:26 -0800)
commit0d345589d74554deeaa701f060998e956b02be4c
treea19260d86b6fa1cdb27a368a3d77335cdfb27dbf
parent3edf420b4f2a9d69224e4f6de682064a4b6628cd
[TUN]: Fix RTNL-locking in tun/tap driver

Current tun/tap driver sets also net device's hw address when asked to
change character device's hw address. This is a good idea, but it
misses RTLN-locking, resulting following error message in 2.6.25-rc3's
inetdev_event() function:

RTNL: assertion failed at net/ipv4/devinet.c (1050)

Attached patch fixes this problem.

Signed-off-by: Kim B. Heino <Kim.Heino@bluegiga.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c