From patchwork Thu Sep 14 15:51:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Levin, Alexander \(Sasha Levin\)" X-Patchwork-Id: 112574 Delivered-To: patch@linaro.org Received: by 10.80.163.150 with SMTP id s22csp784160edb; Thu, 14 Sep 2017 08:52:53 -0700 (PDT) X-Google-Smtp-Source: ADKCNb7C8j1+9lyAeeS/NTJ+NzPFq2iTWoSwwTybmxBEwTAjjlG9wAdj7c1NerwlR/Bw/huDp/uu X-Received: by 10.98.87.219 with SMTP id i88mr21309854pfj.81.1505404373465; Thu, 14 Sep 2017 08:52:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505404373; cv=none; d=google.com; s=arc-20160816; b=yGaSshxTdhGuSGBz5OHwwSkJPUKuadswT4mKuDfG/TYkaElUNDoV/IkD+gA7Nf+asY I7ykaknV2EX7fIX5h7KWqXjW+H33zr7vGdSrEmmkZt3P8ARNoDjswm8GMdpCWQ8VNotU jURiUVmP6gFGS6+YvY6Fi1Ue+KIRDHgI3WnHPPIEdi9DSBnZIpKV/S57Uzz3yqRJhUFP qwGwPWJ+VZNqPWAVF7Sgpiebq/pcGloeB0ndDrkyY2w9bV2EITLhl8fy1mpxxNl1tfLu nKZgG5pbZgpRqVeCpNLwdLZ1cdiq5yLp2mgif3/cR/+WbaidoViTZnFq5iSZhOCc0qNs 4n4w== 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 :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:dkim-signature :dkim-signature:cc:from:dkim-signature:arc-authentication-results; bh=FaIBPOeKN7aA/nVQqJMBW1U/UzfmqdYiv38BUq+K5JA=; b=qAbB3V9gFRMKHQ8+FPLj9K3PP/PKqCEOmeTl9iF5IbmjntmrirSJBHgVUQ8K1zNJVs Wnj9+3nAx40EIX40LOOq7kgIu+3/CFKRnBIvFG+mmqG7uM545GWh+8bDnncehD5uJvzt HLWqRSwfgYRSHIrDspybf4gFhGsh6pG/H1VD5q1NZCfXeStmhxLMMriBG73cqS5DBgcN dpe/ZTx2/XgXq4/r1zQyuptlpKUs4h+0LNcfg1N/zpuxNDsG0EOakwCc34qLj6blV3TW reesyGGidgAQ7OT+AjT0mq7SuBEu/mcYV5gtSKcL1l+Chw7ebfOfHtpC2PoHI42Xo3pK pbSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@verizon.com header.s=corp header.b=m7JOb7M3; dkim=fail header.i=@verizon.com header.s=corp header.b=XkRcSERO; dkim=fail header.i=@verizon.com header.s=corp header.b=XkRcSERO; 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=QUARANTINE sp=NONE dis=NONE) header.from=verizon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f22si10968732pgn.9.2017.09.14.08.52.53; Thu, 14 Sep 2017 08:52:53 -0700 (PDT) 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=@verizon.com header.s=corp header.b=m7JOb7M3; dkim=fail header.i=@verizon.com header.s=corp header.b=XkRcSERO; dkim=fail header.i=@verizon.com header.s=corp header.b=XkRcSERO; 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=QUARANTINE sp=NONE dis=NONE) header.from=verizon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751881AbdINPwv (ORCPT + 6 others); Thu, 14 Sep 2017 11:52:51 -0400 Received: from omzsmtpe01.verizonbusiness.com ([199.249.25.210]:55658 "EHLO omzsmtpe01.verizonbusiness.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751854AbdINPwt (ORCPT ); Thu, 14 Sep 2017 11:52:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=verizon.com; i=@verizon.com; q=dns/txt; s=corp; t=1505404368; x=1536940368; h=from:cc:to:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=yNRUdmY/S5Rebb/GBqI5y/FHVkkGrnjFXCDH8vc404w=; b=m7JOb7M3p1DeY3smJZTX0YU5qJDYN4KUuaAUjC9QnshxhYT0QvMU9LMF zF6etITTJndd+vdiGxENU8vB+iLv+sDmXi4tWGWMFaPcUWjm+IJ7dYFVQ 27UtBARTKAS8smkVdt6CN/WI6E/1WR6ez1+CQntfQ/3j+eaZ5L4CFkhN5 o=; Received: from unknown (HELO fldsmtpi01.verizon.com) ([166.68.71.143]) by omzsmtpe01.verizonbusiness.com with ESMTP; 14 Sep 2017 15:52:46 +0000 From: "Levin, Alexander (Sasha Levin)" Cc: Arnd Bergmann , John Crispin , "linux-mips@linux-mips.org" , Ralf Baechle , "Levin, Alexander (Sasha Levin)" Received: from rogue-10-255-192-101.rogue.vzwcorp.com (HELO apollo.verizonwireless.com) ([10.255.192.101]) by fldsmtpi01.verizon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 14 Sep 2017 15:52:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=verizon.com; i=@verizon.com; q=dns/txt; s=corp; t=1505404347; x=1536940347; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=yNRUdmY/S5Rebb/GBqI5y/FHVkkGrnjFXCDH8vc404w=; b=XkRcSEROhoDvJgriCPMB2dsPWaLYfVBdMmWSA/bDlsiy+TsEqZ7O7/bq uqS4PWSCwM+Jtelf7bIWKmjCHK2EU2OaRdGhp7CA/h9K0RXnQExgYRUul Mi4NHy4anhXYgFpWtFyGnNYm6YvDD8jlICScTqLQwux5XSAl5hXe8oVoE s=; Received: from ranger.odc.vzwcorp.com (HELO mercury.verizonwireless.com) ([10.255.240.27]) by apollo.verizonwireless.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 14 Sep 2017 11:52:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=verizon.com; i=@verizon.com; q=dns/txt; s=corp; t=1505404347; x=1536940347; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=yNRUdmY/S5Rebb/GBqI5y/FHVkkGrnjFXCDH8vc404w=; b=XkRcSEROhoDvJgriCPMB2dsPWaLYfVBdMmWSA/bDlsiy+TsEqZ7O7/bq uqS4PWSCwM+Jtelf7bIWKmjCHK2EU2OaRdGhp7CA/h9K0RXnQExgYRUul Mi4NHy4anhXYgFpWtFyGnNYm6YvDD8jlICScTqLQwux5XSAl5hXe8oVoE s=; X-Host: ranger.odc.vzwcorp.com Received: from casac1exh003.uswin.ad.vzwcorp.com ([10.11.218.45]) by mercury.verizonwireless.com with ESMTP/TLS/AES128-SHA256; 14 Sep 2017 15:52:26 +0000 Received: from scwexch24apd.uswin.ad.vzwcorp.com (153.114.130.43) by CASAC1EXH003.uswin.ad.vzwcorp.com (10.11.218.45) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 14 Sep 2017 08:52:12 -0700 Received: from OMZP1LUMXCA17.uswin.ad.vzwcorp.com (144.8.22.195) by scwexch24apd.uswin.ad.vzwcorp.com (153.114.130.43) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Thu, 14 Sep 2017 08:52:11 -0700 Received: from OMZP1LUMXCA17.uswin.ad.vzwcorp.com (144.8.22.195) by OMZP1LUMXCA17.uswin.ad.vzwcorp.com (144.8.22.195) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Thu, 14 Sep 2017 10:52:10 -0500 Received: from OMZP1LUMXCA17.uswin.ad.vzwcorp.com ([144.8.22.195]) by OMZP1LUMXCA17.uswin.ad.vzwcorp.com ([144.8.22.195]) with mapi id 15.00.1263.000; Thu, 14 Sep 2017 10:52:10 -0500 To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" Subject: [PATCH for 4.9 57/59] MIPS: Lantiq: Fix another request_mem_region() return code check Thread-Topic: [PATCH for 4.9 57/59] MIPS: Lantiq: Fix another request_mem_region() return code check Thread-Index: AQHTLXFPV0xtfHiiX0OoZ5w6F24/1w== Date: Thu, 14 Sep 2017 15:51:20 +0000 Message-ID: <20170914155051.8289-57-alexander.levin@verizon.com> References: <20170914155051.8289-1-alexander.levin@verizon.com> In-Reply-To: <20170914155051.8289-1-alexander.levin@verizon.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.144.60.250] MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Arnd Bergmann [ Upstream commit 98ea51cb0c8ce009d9da1fd7b48f0ff1d7a9bbb0 ] Hauke already fixed a couple of them, but one instance remains that checks for a negative integer when it should check for a NULL pointer: arch/mips/lantiq/xway/sysctrl.c: In function 'ltq_soc_init': arch/mips/lantiq/xway/sysctrl.c:473:19: error: ordered comparison of pointer with integer zero [-Werror=extra] Fixes: 6e807852676a ("MIPS: Lantiq: Fix check for return value of request_mem_region()") Signed-off-by: Arnd Bergmann Cc: John Crispin Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/15043/ Signed-off-by: Ralf Baechle Signed-off-by: Sasha Levin --- arch/mips/lantiq/xway/sysctrl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.11.0 diff --git a/arch/mips/lantiq/xway/sysctrl.c b/arch/mips/lantiq/xway/sysctrl.c index 90565477dfbd..95bec460b651 100644 --- a/arch/mips/lantiq/xway/sysctrl.c +++ b/arch/mips/lantiq/xway/sysctrl.c @@ -469,8 +469,8 @@ void __init ltq_soc_init(void) panic("Failed to load xbar nodes from devicetree"); if (of_address_to_resource(np_xbar, 0, &res_xbar)) panic("Failed to get xbar resources"); - if (request_mem_region(res_xbar.start, resource_size(&res_xbar), - res_xbar.name) < 0) + if (!request_mem_region(res_xbar.start, resource_size(&res_xbar), + res_xbar.name)) panic("Failed to get xbar resources"); ltq_xbar_membase = ioremap_nocache(res_xbar.start,