]> git.baikalelectronics.ru Git - kernel.git/commit
net: Added ASSERT_RTNL() to dev_open() and dev_close().
authorBen Hutchings <bhutchings@solarflare.com>
Thu, 8 May 2008 09:53:17 +0000 (02:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 May 2008 09:53:17 +0000 (02:53 -0700)
commitd8f2b1e6288032cbfc987329dd22e08178c14fdf
tree3d54cec5d517a96e7e50911c4fc74ad6346e925a
parent2e1d12167d3ffe4bc5c88b16d03285a27ae8769e
net: Added ASSERT_RTNL() to dev_open() and dev_close().

dev_open() and dev_close() must be called holding the RTNL, since they
call device functions and netdevice notifiers that are promised the RTNL.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c