dlci: acquire rtnl_lock before calling __dev_get_by_name()
authorZefan Li <lizefan@huawei.com>
Wed, 26 Jun 2013 07:29:54 +0000 (15:29 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jul 2013 17:55:21 +0000 (10:55 -0700)
commitef2c57720e61dc84ebaee8d09b4d9fffb813f4d7
tree08f47afc48a3aa1ec4139ed424f0170eb59021bc
parent7b1866f9f35ac2042ea507559055015bf9d8271e
dlci: acquire rtnl_lock before calling __dev_get_by_name()

commit 11eb2645cbf38a08ae491bf6c602eea900ec0bb5 upstream.

Otherwise the net device returned can be freed at anytime.

Signed-off-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wan/dlci.c