Commit ef2c5772 authored by Zefan Li's avatar Zefan Li Committed by Greg Kroah-Hartman
Browse files

dlci: acquire rtnl_lock before calling __dev_get_by_name()



commit 11eb2645 upstream.

Otherwise the net device returned can be freed at anytime.

Signed-off-by: default avatarLi Zefan <lizefan@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7b1866f9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment