diff mbox series

ipv6: parameter p.name is empty

Message ID 20210603095030.2920-1-zhangkaiheb@126.com
State New
Headers show
Series ipv6: parameter p.name is empty | expand

Commit Message

zhang kai June 3, 2021, 9:50 a.m. UTC
so do not check it.

Signed-off-by: zhang kai <zhangkaiheb@126.com>
---
 net/ipv6/addrconf.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index b0ef65eb9..4c6b3fc7e 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -2833,9 +2833,6 @@  static int addrconf_set_sit_dstaddr(struct net *net, struct net_device *dev,
 	if (err)
 		return err;
 
-	dev = __dev_get_by_name(net, p.name);
-	if (!dev)
-		return -ENOBUFS;
 	return dev_open(dev, NULL);
 }