]> www.infradead.org Git - users/willy/linux.git/commit
net: openvswitch: Release reference to netdev
authorJun Gu <jun.gu@easystack.cn>
Tue, 23 Apr 2024 07:37:51 +0000 (15:37 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 25 Apr 2024 00:07:17 +0000 (17:07 -0700)
commit66270920f90fadb8f29477eb2b83cfb821bac621
tree0ce996d4b043c838636678b6edd56082a3a7df22
parent9dd15d5088e9b322893459e38e1d279a33fc096c
net: openvswitch: Release reference to netdev

dev_get_by_name will provide a reference on the netdev. So ensure that
the reference of netdev is released after completed.

Fixes: 2540088b836f ("net: openvswitch: Check vport netdev name")
Signed-off-by: Jun Gu <jun.gu@easystack.cn>
Reviewed-by: Aaron Conole <aconole@redhat.com>
Link: https://lore.kernel.org/r/20240423073751.52706-1-jun.gu@easystack.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/openvswitch/vport-netdev.c