From patchwork Thu Jun 3 09:50:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: zhang kai X-Patchwork-Id: 454623 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59AF4C47082 for ; Thu, 3 Jun 2021 09:50:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3C5EA613DA for ; Thu, 3 Jun 2021 09:50:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229817AbhFCJwf (ORCPT ); Thu, 3 Jun 2021 05:52:35 -0400 Received: from m15112.mail.126.com ([220.181.15.112]:38706 "EHLO m15112.mail.126.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229626AbhFCJwe (ORCPT ); Thu, 3 Jun 2021 05:52:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id; bh=Tzj37gS5fRDn9Q+o6l FL+5giN6Xx20MQgaw/uq7nHlE=; b=geuzV4eWJ5o3ozmnVyB5B1yu7O/QlfnnFh dQtDvKSIENK/E2nWhXmpfDm22antUWsvIPJ64hRmnjI0EmRRvPlEE9FkXlaCIqvE wxDGIO4m1SSYA/gdw4CeO2mBvXBWLoc7QM6OiMcbeU4jGqMSxb9/ODLBXPoZe+el hV3v0EvQU= Received: from localhost.localdomain (unknown [125.33.196.124]) by smtp2 (Coremail) with SMTP id DMmowAC3G0nrpbhgzOP9Bw--.8346S4; Thu, 03 Jun 2021 17:50:36 +0800 (CST) From: zhang kai To: davem@davemloft.net, yoshfuji@linux-ipv6.org, dsahern@kernel.org, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: zhang kai Subject: [PATCH] ipv6: parameter p.name is empty Date: Thu, 3 Jun 2021 17:50:30 +0800 Message-Id: <20210603095030.2920-1-zhangkaiheb@126.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: DMmowAC3G0nrpbhgzOP9Bw--.8346S4 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvj4RXzV8UUUUU X-Originating-IP: [125.33.196.124] X-CM-SenderInfo: x2kd0wxndlxvbe6rjloofrz/1tbi1w2m-l53WW5iUgAAss Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org so do not check it. Signed-off-by: zhang kai --- net/ipv6/addrconf.c | 3 --- 1 file changed, 3 deletions(-) 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); }