Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp5459106pxu; Tue, 22 Dec 2020 18:42:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJysNSATw3sKCHAlOoKDZPXt6xwZzCTDEu6YbB8/dgwPfCPf/J/oq3vD+e3++veaFEgyIL78 X-Received: by 2002:a17:906:7fcf:: with SMTP id r15mr23101358ejs.79.1608691372749; Tue, 22 Dec 2020 18:42:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608691372; cv=none; d=google.com; s=arc-20160816; b=pSSBEwcSJUJYk+Vid6vyKuFnAnHH5+BTw7lravJcrhVZDuv5MK17bpy4op4xR8uzqN qRfGOOe9T3VtPIZshr8T5ajKtLcOk6UjriTNhprVCLVMgLWIFZMsvalBEAJfCQ2PxRLp 0DecTDdMXCa2XJrg5vA975SZ+VUj33InZeqfFKhuSfN8befj97Xj+pIET/OBUjjfsgPo SmXgbDapjTR08zVFNsu80nwjjwD8h0qbukqQRsXUQ6+fbsF4HJU8qo4ETfaG5TpaBTlx cHJQPbExThifuOSbl4sx71iFUerACf4s7imNLsBsVqLIR7DBjv5CLwMaPr/vuR4IVO1A JGYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oXYRfq9ZdUV9hQ7obRkDdzcNLNjSDaa3CDfGIMnFIb0=; b=qaTuXVpRWHGLi76yxgRrPPBp1nDI6wIF0gow1dfoud7t5CI0xprGMcx32uW5gOIXKy N3LYiEFhwl5ozGEd1p1VKkenynQ3nnE/d0J83g16cZrMLSNaXSbfJFSFX2H1nPgVls9Z 7t/Yw1MyJ2QcO30damG0uk0jfICnYCBJxkrt4nNAeD6MElB6sm8pzdVGwlqmFoyJn83t pY5tCl9pjg0DdZ2BIgWCqst57khaF0Fljp0bj+lg4LO0GVhSiRxvQVDIbhnKvrKSfZmn nowZHBBZ8JYi28ZrfxDX4THYn21PcCyRVLa7oH30LPbDRxirISYnS6PdNMJl8vzONS9W Pp1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bSAn0E7z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v1si3561962ejd.298.2020.12.22.18.42.30; Tue, 22 Dec 2020 18:42:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bSAn0E7z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731079AbgLWClZ (ORCPT + 99 others); Tue, 22 Dec 2020 21:41:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:51404 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729986AbgLWCXY (ORCPT ); Tue, 22 Dec 2020 21:23:24 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2973F2313F; Wed, 23 Dec 2020 02:23:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1608690185; bh=1Z2xeE+FnzBDMyXOFEAoZYKo8qjmxghSfR+XpgDDBdM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bSAn0E7ztPmpy4rXvbMNfgMscL59mPanSvG7s2YRZXMXeiT1bZClq/i1mWZjUTZAd 7fmfP4/ln8GEwK3nK2TsrXadLcNu9fkLn8V9+X1fxmyhvmrOcgpwSaAKIofmi0W33C EtnJHl5j0kfrmQBNnNK6DkvWU8dlcnTivOLMcTU2DCJJ4D40t7CVONxJWN3UuIV1O0 J4ZLbfqjw+lx58BypGMrVXoEMUQKw4gAOM/zzasuz0PUu6f2HyyhtLfQ+Z/HU2c973 SLYwfukkUUFCy1FoWe4fGtOOT9RwMQ6R4QEVJ+Cpxu+Lt/FzRgNixPNHymqfUYWLn0 9bzZLt9wlzg6w== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Qinglang Miao , Thomas Bogendoerfer , Sasha Levin , linux-mips@vger.kernel.org Subject: [PATCH AUTOSEL 4.14 10/66] mips: cm: add missing iounmap() on error in mips_cm_probe() Date: Tue, 22 Dec 2020 21:21:56 -0500 Message-Id: <20201223022253.2793452-10-sashal@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201223022253.2793452-1-sashal@kernel.org> References: <20201223022253.2793452-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Qinglang Miao [ Upstream commit 2673ecf9586551c5bcee499c1cc1949f6f7cc9a1 ] Add the missing iounmap() of iounmap(mips_gcr_base) before return from mips_cm_probe() in the error handling case. Signed-off-by: Qinglang Miao Signed-off-by: Thomas Bogendoerfer Signed-off-by: Sasha Levin --- arch/mips/kernel/mips-cm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/kernel/mips-cm.c b/arch/mips/kernel/mips-cm.c index 50d3d74001cbe..aedd353b9b925 100644 --- a/arch/mips/kernel/mips-cm.c +++ b/arch/mips/kernel/mips-cm.c @@ -228,6 +228,7 @@ int mips_cm_probe(void) if ((base_reg & CM_GCR_BASE_GCRBASE) != addr) { pr_err("GCRs appear to have been moved (expected them at 0x%08lx)!\n", (unsigned long)addr); + iounmap(mips_gcr_base); mips_gcr_base = NULL; return -ENODEV; } -- 2.27.0