Message ID | 20180301151857.721-46-alexander.levin@microsoft.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.80.172.228 with SMTP id x91csp2932746edc; Thu, 1 Mar 2018 07:23:22 -0800 (PST) X-Google-Smtp-Source: AG47ELutcWx/nno4n68WPJlcCXda23oCf1nSLR2bvhAniQOURorwsC7JC53jveMSPa65oRs/Sxej X-Received: by 10.99.181.28 with SMTP id y28mr1884548pge.222.1519917802505; Thu, 01 Mar 2018 07:23:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519917802; cv=none; d=google.com; s=arc-20160816; b=Qz2aJpayTfZzth25TvUP+0kzBCKYKcgMntL0vUK6W1rBSoTYU02Pxn1kX8DhtDXNQo C4lTRcPi9WBZkO+AnooG8kAz+bZDdUjD8532NkZURiJlpfAIx1SkbedmybaiGful94d1 oXnLdNpofHZV+QuUeJH83kh+FvkKfYM5pxukZ3xhLC2P1oT0OsimOPpB26BTrTao8iS9 XyRnIRAjJNsDoHxKnPRehNEw0JD0AsDgxCFlDrWggnfYI/wXSWNxc5xHGodeGifR+0ET SNVtRyUqq2zTSKvf4JVvL45+V08iz+myM1Ztt2zPlaKsrqMgg16qjLrNk/bMDDF8OXU5 mAZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=mf5A8nc33l1ioq3ktXBmNhJI18xx2gHOBtoLAn0cFnk=; b=uSfKT4fr7berLMtRBllUw3O3ibvXBwBHskSE2XQayDTGo6C4RtbphEo6TzVTCZLPJk sC5107ZmRrXiUmZbxo/9aBJ4KjvvsiCnZGaKILK1bgDPbr21G2HUClVLiF4qSYI20PmX DEwQbu4veFS/dG6OXq8fwRwIqOFSFU2R2smcFwqxeJwiEjfEUS7UF6MjiAYQ2fZBYbU6 eG+FM33gQnXTTKWgw4Ku7hAMMFn8dlEzsyg0dmqy3dFTM5V58jX2B4aKT+nFoF8rToLm JGDbwWwYfqV744GrQXWMlUP4mYkJ48yjCW9cD9UvRturIAyKCQIgqJyp3c1qtx8ioBdo q+sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=W7hDmj2A; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: <stable-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c22si3143541pfl.371.2018.03.01.07.23.22; Thu, 01 Mar 2018 07:23:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=W7hDmj2A; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031856AbeCAPXU (ORCPT <rfc822;anders.roxell@linaro.org> + 10 others); Thu, 1 Mar 2018 10:23:20 -0500 Received: from mail-by2nam01on0129.outbound.protection.outlook.com ([104.47.34.129]:47507 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1031861AbeCAPXT (ORCPT <rfc822;stable@vger.kernel.org>); Thu, 1 Mar 2018 10:23:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=mf5A8nc33l1ioq3ktXBmNhJI18xx2gHOBtoLAn0cFnk=; b=W7hDmj2ABhznCGTXT019wueseyo2gN0MQrtQQCrg03+NiH+2q/fl5UH3waItQEjznJj/BHwlwpRsIqXzWXqaBnUP4fzPy83w3OafDVv+A2Zyyh/7ufBm9Ijp0AJXi3h/rnIZKMl3tY1oJ7/MYee2Rgph2NjPO+mbcVJLycqE8bo= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0870.namprd21.prod.outlook.com (10.167.110.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.567.2; Thu, 1 Mar 2018 15:23:15 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8063:c68a:b210:7446]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8063:c68a:b210:7446%2]) with mapi id 15.20.0567.006; Thu, 1 Mar 2018 15:23:15 +0000 From: Sasha Levin <Alexander.Levin@microsoft.com> To: "stable@vger.kernel.org" <stable@vger.kernel.org>, "stable-commits@vger.kernel.org" <stable-commits@vger.kernel.org> CC: Dan Murphy <dmurphy@ti.com>, "David S . Miller" <davem@davemloft.net>, Sasha Levin <Alexander.Levin@microsoft.com> Subject: [added to the stable tree] net: phy: at803x: Change error to EINVAL for invalid MAC Thread-Topic: [added to the stable tree] net: phy: at803x: Change error to EINVAL for invalid MAC Thread-Index: AQHTsXDNDqFJoBXzEUmF2Q4Ou7tYSg== Date: Thu, 1 Mar 2018 15:20:16 +0000 Message-ID: <20180301151857.721-46-alexander.levin@microsoft.com> References: <20180301151857.721-1-alexander.levin@microsoft.com> In-Reply-To: <20180301151857.721-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DM5PR2101MB0870; 6:yZUG12ZSPaf3hXCIwXRlblW2oKlX7wZA3oq8tOodLTlXX2XrgyIN3nyTjWpMwqRLq1SgcnldjmyOJoi4TCd1EWMY/VN76p9SBIJk7/gaYMwmZZz1kyjRgjpL/RfZfVL4TUkX2Uz6vzieaZQPjFVRchhOLjC4hcHV5wQfJhDK6ZazNH3YjZsYaRPoJIXTNjZ1VphKIG2uEP+1YLzW8oCba9kTZnex2b+Ft4pyh6KnQ1kBs7TGvOsfKFqyYmmo2uZjNagknmAAJvfqjFjgp8ooP6JKIOoNBh0Wf3pRx98h0eOPhslXb4IOUmQ1bAx5TChLh3OfmqXSiSW4ZSikkxuhQDY6RSCavox2px+0VGmutllk0XuZOafDA0/Z3/gIKZ01; 5:+bIg9m4do5KWs+gyU6tgqxnvFr4Fw6cUgeN5fiVxLDb+lJoRr9mlk7koa2UcozlRWmkiRgZ5kS8UkTQQZSrRd4qoI2KzTm3w3lFPVyz9qXw09GXFQyAgUrXXx51yEccwF8bvyBHLyK0qCCpqNIZuX8fqhLhiBgTTqGRCr/Wrktc=; 24:c63jXPS/B0JVFCVWmuXm04gKYKe+AUV8poXxDNv2e/k/6oyUA0kH5Ekxetmznn6rd3a1z3FdHLaoZlHswa0xZ3Yh8QgvoDOAi1eJoqH/H8o=; 7:hKdEITSuPuULOIGYeSRNcAHrVoLVnbkmasHvMlAN1oFqsl1zuva9rwRoZH598M2LPQVREoyrrhJ4ThFIkz7o2OzsWHRCKLJENEFL4vvC0xxDAlCkDiH86a89OBQ4zsSwidaF5dyVylGl9PmpcHSAV7Qwnmp6cVYFvQFFunNVuNnOLPzawi50B+IOHbUVgBJH3oYAVtMNLkPlyI8oDeWvPB54kBL8uBfTHStTUFN9WMIop4nyCRaCwmkvpnOIj9uD x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 86841303-0218-4ebd-df7f-08d57f885aa8 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603307)(7193020); SRVR:DM5PR2101MB0870; x-ms-traffictypediagnostic: DM5PR2101MB0870: x-microsoft-antispam-prvs: <DM5PR2101MB0870515F88F2098F9B869FC8FBC60@DM5PR2101MB0870.namprd21.prod.outlook.com> x-exchange-antispam-report-test: UriScan:(28532068793085)(31051911155226)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(61425038)(6040501)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231220)(944501228)(52105095)(3002001)(6055026)(61426038)(61427038)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123562045)(20161123560045)(6072148)(201708071742011); SRVR:DM5PR2101MB0870; BCL:0; PCL:0; RULEID:; SRVR:DM5PR2101MB0870; x-forefront-prvs: 05986C03E0 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(39860400002)(366004)(39380400002)(376002)(396003)(346002)(189003)(199004)(68736007)(14454004)(6346003)(6116002)(26005)(1076002)(4326008)(99286004)(305945005)(86612001)(186003)(2906002)(97736004)(86362001)(107886003)(66066001)(105586002)(3846002)(2900100001)(10290500003)(575784001)(3660700001)(3280700002)(316002)(5660300001)(8676002)(8936002)(81166006)(81156014)(22452003)(36756003)(54906003)(10090500001)(76176011)(25786009)(6512007)(59450400001)(6486002)(7736002)(110136005)(478600001)(72206003)(106356001)(6506007)(53936002)(2950100002)(2501003)(5250100002)(6436002)(102836004)(22906009); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR2101MB0870; H:DM5PR2101MB1032.namprd21.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-message-info: 551bWn6saQGUabZU2gDn5It1RHSowIitRNNoj3vDsjB0lD3kUFRNPSi9LFF0n0K5tv2uLrYlOcJCqFOK0J3sNhfR67NBtK5krClJmRD/AfHygFQR9e0LZpU55uNohHZkvfw7vl134XigbYuTaMmLaNQfpfY92e9vy97SXgIwQyM= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 86841303-0218-4ebd-df7f-08d57f885aa8 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Mar 2018 15:20:16.5519 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0870 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
[added,to,the,stable,tree] net: phy: at803x: Change error to EINVAL for invalid MAC
|
expand
|
=============== [ Upstream commit fc7556877d1748ac00958822a0a3bba1d4bd9e0d ] Change the return error code to EINVAL if the MAC address is not valid in the set_wol function. Signed-off-by: Dan Murphy <dmurphy@ti.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> --- drivers/net/phy/at803x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c index fabf11d32d27..d4b8ea30cd9d 100644 --- a/drivers/net/phy/at803x.c +++ b/drivers/net/phy/at803x.c @@ -105,7 +105,7 @@ static int at803x_set_wol(struct phy_device *phydev, mac = (const u8 *) ndev->dev_addr; if (!is_valid_ether_addr(mac)) - return -EFAULT; + return -EINVAL; for (i = 0; i < 3; i++) { phy_write(phydev, AT803X_MMD_ACCESS_CONTROL,
From: Dan Murphy <dmurphy@ti.com> This patch has been added to the stable tree. If you have any objections, please let us know. -- 2.14.1