tr: fix leakage of device in net/802/tr.c
Add dev_put() after dev_get_by_index() to avoid leakage of device. Signed-off-by: NWei Yongjun <yjwei@cn.fujitsu.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Showing
想要评论请 注册 或 登录
Add dev_put() after dev_get_by_index() to avoid leakage of device. Signed-off-by: NWei Yongjun <yjwei@cn.fujitsu.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>