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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Jun 2013 22:36:42 +0000 (15:36 -0700)
commit11eb2645cbf38a08ae491bf6c602eea900ec0bb5
treeaa6e7b01ff83084985633ec26b5913fa363d2e93
parenta5cc68f3d63306d0d288f31edfc2ae6ef8ecd887
dlci: acquire rtnl_lock before calling __dev_get_by_name()

Otherwise the net device returned can be freed at anytime.

Signed-off-by: Li Zefan <lizefan@huawei.com>
Cc: stable@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/dlci.c