Received: by 10.213.65.68 with SMTP id h4csp2118887imn; Sun, 8 Apr 2018 20:10:22 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+1UQihAsuLhnPGtnCX4CgWAtRlIRz1rATdbtSkYnnKFB0waY3McF87WSv6dCKBL/iX4F54 X-Received: by 10.98.13.151 with SMTP id 23mr27828131pfn.120.1523243325124; Sun, 08 Apr 2018 20:08:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243325; cv=none; d=google.com; s=arc-20160816; b=cZqvmx8Kd/wyaBgLQeSqluZbKg9/czv0KHeJjYNP0fbD6kg6DpyoCkXLnWUhEPT8NB qHVI034wUSQFIay4pc2sBs5UJqfAGiI+GTmxNAjPKSDi9gjEOoXw3F11LxaYhtumLxzk 5Nz35fvraI30DBmvHWL7K0oezpwLKODceGQjvA2RZTL7RqdMMAEj2IMUWMpPr4G9IVtO ywmPjqeiQVrlFw4USAg5+a/rhOqswN8zVBfplDx9fToAiV/m8ZYQfN2jIx/gPPE6k2aF bodVqK26izR5W5z1VO/DIXR+9eD9laX8OYkO9yYJhCRavjgkqcYRN2vRBGkQmmpHOzfw QL4g== 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=Iee8G+mgZRubogqk6Sd08ha7Ez7oo1impZ1XlR/rMC8=; b=nL05YzR77WYPESummid97nRyyIxZzpKG5tK582fkFEogxz/ZdXJIGrkHKUToxS3IaL lk2kgiBdkGd01hxSsExTAaG/llenvcHK4wWgds3rAV7NB1v8uei50rvZKoa0jlwl+jMs H0ZIsQap8kG1dCsYryX8KmPZ606HRgDtZOdrQWs1lYR+p57LXHm1chC1sqCBE0Dd/Swq 3tXuNPDHqPOf88gOpcyT7JTbBZMKfBkh2VeNdO4F/GHU8fPXp/m2gBSRxsDRspCP2qm8 fk5ViC2efZY/WMfyornokIfAlgUHV8RCys2K3Ear86WnKNW2/tfzerTqcmkDn2huBD27 loqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=Ssx7key4; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a21si9863640pfn.281.2018.04.08.20.08.05; Sun, 08 Apr 2018 20:08:45 -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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=Ssx7key4; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757683AbeDICJb (ORCPT + 99 others); Sun, 8 Apr 2018 22:09:31 -0400 Received: from mail-by2nam03on0135.outbound.protection.outlook.com ([104.47.42.135]:16544 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756238AbeDIAbT (ORCPT ); Sun, 8 Apr 2018 20:31:19 -0400 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=Iee8G+mgZRubogqk6Sd08ha7Ez7oo1impZ1XlR/rMC8=; b=Ssx7key4ipmvytAM/1hNNu9hfA1YzsJy+O+z/y2t+xuyD3lRXKiDkwyL/wldJt31EslW4CpPgpWrm2FljVnW6Jxscujwy0ach5SnE1SJgFu8FmrQ7wxKrmrwU6aQCZcF4qlc6litIwxfRh+05ISR597Br1q8dswgZMN2JF7Uq20= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0917.namprd21.prod.outlook.com (52.132.132.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:31:14 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:31:14 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Dan Carpenter , Kalle Valo , Sasha Levin Subject: [PATCH AUTOSEL for 4.9 165/293] libertas: Fix lbs_prb_rsp_limit_set() Thread-Topic: [PATCH AUTOSEL for 4.9 165/293] libertas: Fix lbs_prb_rsp_limit_set() Thread-Index: AQHTz5k0fGOAk3+3mkqe+BXA3SWFkA== Date: Mon, 9 Apr 2018 00:25:03 +0000 Message-ID: <20180409002239.163177-165-alexander.levin@microsoft.com> References: <20180409002239.163177-1-alexander.levin@microsoft.com> In-Reply-To: <20180409002239.163177-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;DM5PR2101MB0917;7:whsZ6SuQKErg6Gig+msT2Fuyfks7YEX30MSrGQPRGFwaBS58mOdTaEeTJG/Af+TSYred/Ukti67oV/K8K+XX17kEfbOp5djHgd3FRM1zhGZV6B4GlbOJHW2pU+nCzrUdDgJGPjWhfMUECZjchxqyLfRxNxe2KxHpGVHg3zx8i0Q1KitEgBte2oa3pPTKVRF7+17b5KePqNqe/jegjrQEvv6ECqtl7eGE/fOCTBef+XkBNpmcoefPYmYXH4891HQJ;20:mAxKQ8X4Mvpj28It4C00iM7ow1s9/dQsjcSzR/FUpZlfotfswCo/vDMCph1kYmQCqgXLoXYGMdES3wHJkOXAwBUuMYLeL3rvKg8UtftiCjVg71NzdvYaS1e0jAThksy4uVIZJF0jIR4Rmg2P9JXz53me8JdpwEEDIylpEYFyBgk= X-MS-Office365-Filtering-Correlation-Id: e0f8eb94-49a3-4959-031a-08d59db133f3 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(48565401081)(2017052603328)(7193020);SRVR:DM5PR2101MB0917; x-ms-traffictypediagnostic: DM5PR2101MB0917: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(788757137089)(146099531331640); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(6072148)(201708071742011);SRVR:DM5PR2101MB0917;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0917; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39380400002)(39860400002)(366004)(396003)(346002)(376002)(189003)(199004)(99286004)(22452003)(106356001)(26005)(110136005)(478600001)(54906003)(10290500003)(316002)(1076002)(72206003)(186003)(4326008)(97736004)(66066001)(11346002)(25786009)(86362001)(575784001)(476003)(446003)(2906002)(6666003)(6486002)(105586002)(86612001)(3280700002)(3660700001)(6512007)(3846002)(6116002)(6436002)(2616005)(486006)(53936002)(7736002)(8676002)(81166006)(81156014)(8936002)(68736007)(305945005)(10090500001)(76176011)(6506007)(102836004)(36756003)(107886003)(59450400001)(2900100001)(2501003)(14454004)(5660300001)(5250100002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0917;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: ixUt2arc51utovJbnGPz88d+/s9Z47L9MYgnJ0N9eB4EvnVbQZBAV6M9LuG2gfhVFEPIN5vLebHsBcC0DGcuVHFZqMr96jmP8s1NKeJgYzhN/HJtRTFozlror1fjieqN0TOy19Nl5U98rtjzjvg1ObDwpVwWqHKWN2cF8TBlxr296g7Ozcf/p2glyNKOcyvWxQVIHVlIH9NbNF5Na2j1U5Bstx4USZhh6T04BYX7PUXnKT+YE7CCu5AuAAwUcJzNfB4QLtlzIqPuOiuHc/NNeQylHW27+vKJXoz48tug13UByrICNcFVMURWZxImyTfcBh8DIr3Rc4gbtLNJ5d4dn2oMedk0w40MUQREnvEwEpRpVNS8E80PMGTfwdKZ2lpB8zP8FwZltekMG5pTB4ah3kF+wr/Q9AgQ7FlfoXOzH5A= 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: e0f8eb94-49a3-4959-031a-08d59db133f3 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:25:03.8001 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0917 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dan Carpenter [ Upstream commit 69551f5f370cc20342fab17ca54716b6ec7e332d ] The kstrtoul() test was reversed so this always returned -ENOTSUPP. Fixes: 27d7f47756f4 ("net: wireless: replace strict_strtoul() with kstrtoul= ()") Signed-off-by: Dan Carpenter Reviewed-by: James Cameron Signed-off-by: Kalle Valo Signed-off-by: Sasha Levin --- drivers/net/wireless/marvell/libertas/mesh.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/marvell/libertas/mesh.c b/drivers/net/wir= eless/marvell/libertas/mesh.c index d0c881dd5846..a78c4d18fe4b 100644 --- a/drivers/net/wireless/marvell/libertas/mesh.c +++ b/drivers/net/wireless/marvell/libertas/mesh.c @@ -239,8 +239,9 @@ static ssize_t lbs_prb_rsp_limit_set(struct device *dev= , memset(&mesh_access, 0, sizeof(mesh_access)); mesh_access.data[0] =3D cpu_to_le32(CMD_ACT_SET); =20 - if (!kstrtoul(buf, 10, &retry_limit)) - return -ENOTSUPP; + ret =3D kstrtoul(buf, 10, &retry_limit); + if (ret) + return ret; if (retry_limit > 15) return -ENOTSUPP; =20 --=20 2.15.1