Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1890177ybl; Thu, 5 Dec 2019 08:34:38 -0800 (PST) X-Google-Smtp-Source: APXvYqwc1XEvT3jTf4HMQi51atibrnd2sfWOWUhbObH8Fb+q2hAD3H2N6CXhX1Yxzf+IUmWSuQKR X-Received: by 2002:a9d:6315:: with SMTP id q21mr6899559otk.15.1575563678219; Thu, 05 Dec 2019 08:34:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575563678; cv=none; d=google.com; s=arc-20160816; b=UrwxP3b9/PLkQp8k54YQTe9G/TKVs3JHA+ChxfU2Dy1CkBlzRaLLYYcSttXgV96kVp oVkqREN6CX6UIIMaqcHYWg52ihI5EN/GMsbpr9yoMpmkDF3KHb1YAURvOKaT/vBRGpTF zm/MtQVsPCcfKfSsvL2yLiutTUy+V4AxV7dsSLPt3UcLpBI/5fYfrNuDUHRcsZONpW8C O4VSbeFSM7nnSZ+N8MLVzwD9A8iYeEjgEvxL1Y70A7iYVjqckfth9SOe45irP0tJUWLt WZzsEF0o09wGploo+hR9Pv2N30lclK1wX4gNRlThWYQNT5T8u+5LYXrT3UJCMka3GORK tW7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=Nk1cXD8ocqFBtC4Ixaba4spST22wd8UaYJyDzazVJTU=; b=jhogGZMmlvte+F5ip6k0kHVkRwg9bRpJ8uaUMNOm+A7+YWeGaK8uNMK/rlSk0R26wz FILQaSJOJrKeYQOhWUJMqP7pGwdwmSdq2GzQK1VRBObH1xDfhURnQFCtPcVYXtQ3YKBq 3pq7HjikbGJxxOREGhOQLj2Wfg4r6ITvQj4ev2Sax6DkCeA3ms5YUHRZl8Oe9bQQkssP ffGMQlKYrJj/YLXashvuRv+IzgVeNO1R4Vhd4n1LSl4MMyZXbjnI1O/lEV5lYEEFC0oI hwsagSGvvTsAD3N6ddBO82fOeuDD81Ogusni6e0SUV8RGK3ofxsK1C+XfuBzz/ajMLOO Cltg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Spso+1VB; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m9si5072399oic.14.2019.12.05.08.34.25; Thu, 05 Dec 2019 08:34:38 -0800 (PST) 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=fail header.i=@gmail.com header.s=20161025 header.b=Spso+1VB; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730012AbfLEQHV (ORCPT + 99 others); Thu, 5 Dec 2019 11:07:21 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:39173 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726028AbfLEQHV (ORCPT ); Thu, 5 Dec 2019 11:07:21 -0500 Received: by mail-pf1-f196.google.com with SMTP id 2so1820181pfx.6; Thu, 05 Dec 2019 08:07:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Nk1cXD8ocqFBtC4Ixaba4spST22wd8UaYJyDzazVJTU=; b=Spso+1VBGEYjX599HKgBZ7LMPvTnErQh8OrWYDokzKb3zBSSaEgZ4u+I7C5EwKrVeR lUG3UW/5r65Fp75N8CBIUjv0os9y+d8jDXNVYICft9E6k/2uxzV9eTJm5v5FvsNpZo9o vf8MzxGjzeWRfcVXaeWb2sQNaDqMSv+/hIJ+IRH3BPxs3B1ykEPlsdshzdpXT6Xuwzcj EgGzERz2cVpnYAaW3kqMFAtCJQswy/cTqOwhu4EHNjgqlzgRKhF2SSB4NFAcFCCyDxfn UbFZIr3T0i9xpQA3xoaqCda2BYeVA5gwQcFMZGSDjcbHaEj8cfWg1pu9yAIv4xdZTwIg k00A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Nk1cXD8ocqFBtC4Ixaba4spST22wd8UaYJyDzazVJTU=; b=l8cWx2IplVPxHPDd91ucWHxdeqOTRmdRRmxSgsk64tGXHRy5fDnSXwy1xUFJAmQghB Mmqeh3LBy4yhXpRf9YqKcouhmvvJBTl0UL/sAVWoN3ydXpf3mqKtxP/3NBugfNNCZRus jYykpdUHURazb3bzw/K98qX7iyYF6yuvClvt/P7158WDeqguChvGrZqdHbjlPGArI9Kw UTl236B7QsawiIGg8GFxLdvLnRXR9MQ2GTf9e98ApIusXmlX0mo/BoNDdn5geJa9+tl8 BDDYrMYDnXN1V5JtgN7uJUK9ueJYTdxP9kkudCbyQEs8GR8RjRKVWgyhpVbnlmYT0BD5 UANg== X-Gm-Message-State: APjAAAUukiG4hJqOZiRM05pU+vkQQrYEIA+Z1aNGNekin0GWI/lEFzqW Wk5gafjSRAZRkGfyLziPvIk= X-Received: by 2002:a63:3104:: with SMTP id x4mr9948531pgx.369.1575562040738; Thu, 05 Dec 2019 08:07:20 -0800 (PST) Received: from suzukaze.ipads-lab.se.sjtu.edu.cn ([202.120.40.82]) by smtp.gmail.com with ESMTPSA id m15sm11956980pgi.91.2019.12.05.08.07.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Dec 2019 08:07:20 -0800 (PST) From: Chuhong Yuan Cc: Bartlomiej Zolnierkiewicz , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Chuhong Yuan Subject: [PATCH v2] video: fbdev: vesafb: add missed release_region Date: Fri, 6 Dec 2019 00:07:12 +0800 Message-Id: <20191205160712.32245-1-hslester96@gmail.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The driver forgets to free the requested irq in remove and probe failure. Add the missed calls to fix it. Signed-off-by: Chuhong Yuan --- Changes in v2: - Modify commit message. drivers/video/fbdev/vesafb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/fbdev/vesafb.c b/drivers/video/fbdev/vesafb.c index d9c08f6c2155..fbb196a8bbf6 100644 --- a/drivers/video/fbdev/vesafb.c +++ b/drivers/video/fbdev/vesafb.c @@ -468,6 +468,7 @@ static int vesafb_probe(struct platform_device *dev) fb_info(info, "%s frame buffer device\n", info->fix.id); return 0; err: + release_region(0x3c0, 32); arch_phys_wc_del(par->wc_cookie); if (info->screen_base) iounmap(info->screen_base); @@ -480,6 +481,7 @@ static int vesafb_remove(struct platform_device *pdev) { struct fb_info *info = platform_get_drvdata(pdev); + release_region(0x3c0, 32); unregister_framebuffer(info); framebuffer_release(info); -- 2.24.0