From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753413AbdKWVuO (ORCPT ); Thu, 23 Nov 2017 16:50:14 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:40764 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753333AbdKWVuN (ORCPT ); Thu, 23 Nov 2017 16:50:13 -0500 X-Google-Smtp-Source: AGs4zMbm095drSW/mq2kkR8GGIeEYSJ19qodEHucTGnDUC+Swm5Yk0J6f/z5fBHe+XXzoWW+Bn1e1w== From: Vasyl Gomonovych To: ralf@linux-mips.org, paul.gortmaker@windriver.com, jhogan@kernel.org, linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org, gomonovych@gmail.com Subject: [PATCH] MIPS: TXx9: Add missing iounmap Date: Thu, 23 Nov 2017 22:49:55 +0100 Message-Id: <1511473795-20137-1-git-send-email-gomonovych@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the missing iounmap() before put_device and return from txx9_sramc_init(). Signed-off-by: Vasyl Gomonovych --- arch/mips/txx9/generic/setup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/txx9/generic/setup.c b/arch/mips/txx9/generic/setup.c index 1791a44ee570..6ef5edb85d68 100644 --- a/arch/mips/txx9/generic/setup.c +++ b/arch/mips/txx9/generic/setup.c @@ -965,6 +965,8 @@ void __init txx9_sramc_init(struct resource *r) } return; exit_put: + if (dev->base) + iounmap(dev->base); put_device(&dev->dev); return; } -- 1.9.1