Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp587265imm; Sat, 7 Jul 2018 04:06:29 -0700 (PDT) X-Google-Smtp-Source: AAOMgpck1kXijDFXSvrPYvcJqNpDDj4qfGOcx99VRkF3HkZVnNYMawaUrIs0KM01eXCYzLYYui2R X-Received: by 2002:a63:714a:: with SMTP id b10-v6mr12010452pgn.73.1530961589127; Sat, 07 Jul 2018 04:06:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530961589; cv=none; d=google.com; s=arc-20160816; b=kosc0Lj4SBw+TreVnsBUFgbp0JEc98P95Fu9fjMYiSmdXf3dRiCw5MdHYjQ7Zxzf/4 loyyCPQLYKSSVOatWzuyrMAiOXQ07eAdEpCZJ1NeGuPAJhTGC/wcgV2aZohd80+V4oIG SMpp2HtI2M+5aPQegge7pU24Lxbu2AAPxycP9AqrQtUg9YdJi/qQwGxkfL6guJCtM1I/ fmviPP6FxmG80adO43PCz8Aqpcx7PWH1j/IV3tVV4Opm0ye6zBtEDorVMaeoeVvlUAJT HYPsVt9LFNynNg6wbo3r0R0wAdJ3h/ULg4Em/9gHZGV9Jl2OkH38NNDHQh7zud4kb+P4 rmGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date :arc-authentication-results; bh=JgWnzd8jiFG+9VRRP5B3V7OAL2If841Exzre8dnRFj4=; b=Ia4YGASVK0n00NkuBkWUrqOVQ3JdiGTJuQ/AbycMWU7X7s3k15rMhk20VmDvqEvkug p7aU0DMYtEv8QqjUE/cWyukDXYCbclGHpWGDdTqb06/gF/RpeggNWK6GqDGPn1ICQpjo crOD7YyNJq29uVuJOZ0gJ1TVnq00AmW3XrsQfQYvIHmWCGxu9khyqS+ZaTQ/r/Bj2mX6 u/QBXFCqCFzXM11Yfrh0HGqQVNe9qfPYnxkBq7sQeqhMbOQjY8f/dPzoUhAFkq8dU4pk BwbGosuLGYK3otYeWpKmcvgYoyukrS/0fCilrIb/CqeQ3bt2zai/F7d1jYHuE3ofLSIb /hig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p21-v6si9871654plq.94.2018.07.07.04.06.15; Sat, 07 Jul 2018 04:06:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753905AbeGGLFc (ORCPT + 99 others); Sat, 7 Jul 2018 07:05:32 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:51148 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751964AbeGGLFa (ORCPT ); Sat, 7 Jul 2018 07:05:30 -0400 Received: from localhost (unknown [211.196.191.92]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 5DC2C11AB72AE; Sat, 7 Jul 2018 04:05:28 -0700 (PDT) Date: Sat, 07 Jul 2018 20:05:26 +0900 (KST) Message-Id: <20180707.200526.1062008433639194322.davem@davemloft.net> To: arnd@arndb.de Cc: nikolay@cumulusnetworks.com, jiri@mellanox.com, yotamg@mellanox.com, roopa@cumulusnetworks.com, petrm@mellanox.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net] net: bridge: fix br_vlan_get_{pvid,info} return values From: David Miller In-Reply-To: <20180706124420.3129099-1-arnd@arndb.de> References: <20180706124420.3129099-1-arnd@arndb.de> X-Mailer: Mew version 6.7 on Emacs 26 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sat, 07 Jul 2018 04:05:30 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann Date: Fri, 6 Jul 2018 14:44:02 +0200 > These two functions return the regular -EINVAL failure in the normal > code path, but return a nonstandard '-1' error otherwise, which gets > interpreted as -EPERM. > > Let's change it to -EINVAL for the dummy functions as well. > > Fixes: 4d4fd36126d6 ("net: bridge: Publish bridge accessor functions") > Signed-off-by: Arnd Bergmann Applied, thanks Arnd.