Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp736476ybc; Sat, 16 Nov 2019 07:49:01 -0800 (PST) X-Google-Smtp-Source: APXvYqylDYfgwt2q5ekmsRchVR3udXElf1vOoFdNFUZzHHWPvFu5R/D31cX0UNj+WrSOZkmLeBcS X-Received: by 2002:a17:906:af5a:: with SMTP id ly26mr10951852ejb.252.1573919341572; Sat, 16 Nov 2019 07:49:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573919341; cv=none; d=google.com; s=arc-20160816; b=VPrbkEx/nTqNkIL0PygQUsfvHsuapwYWgK8EFLeks0Rl7U+iZi+l7WeEkUQmRqQFUB 5KBPtszOzRw5LW4Mxs6URIOHOmMLnGBmejKfxomCOH4516ORi9PfQ4oIYCASCPdlpH9p DLSicFQp8WYejyZe6BsCFbnsH6etpqu4ucKj0G5Mm2rXQcY0ETp7bquq4SXu67I+BIew 8D26Zo4r5y+tgddnEnriBFAihhrW6JnrMl8oeKaPg5845axzv7zBdb6Jl6mXg/FJCcM2 STAdtxlOwBbAF63FqwWdkz9N7CNsOeDeDVI9NKA40It6nKY+RdSZpmNLLhzqECLu3Mhg ujMQ== 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=WnvmRD6ZDU2PlgS2OgMDPMW99DMkDnT5Nicaq9xaRVQ=; b=aGVSR0pzGB+mUeUDvZVBtkj+urkMP3fSCD5eXwfcevbUTdk82ABHgMMsiXFbSMqoZK vcs+ZifjPyptE3/vGrR85qKZ3q5P6ryWsWjkNavdk/ZpbKRS+3VDYXZ2ScMCfXS8UX9+ 2fpDQEDe0oUtuU7fhlkzVySkddn96CXBWIjMVfJ2OWnvbfx0cA0xqB5K532pxFMlXFbi JsIF+1qWAR9nxsvmUFoeZXKOwSn+pON/0sXA6VwED6M8sW4X2wLubWthQ5fFuMUOw4oG BDL4bsqrxI6WiszgRimMGza+RkjHlFgO0dEHW3BQNEEIxW4O2RRb58dpkEx44CnvmQ0q sVhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=LpBNNZt3; 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 z16si9289862edd.314.2019.11.16.07.48.37; Sat, 16 Nov 2019 07:49:01 -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=LpBNNZt3; 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 S1729006AbfKPPod (ORCPT + 99 others); Sat, 16 Nov 2019 10:44:33 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:45222 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728969AbfKPPo1 (ORCPT ); Sat, 16 Nov 2019 10:44:27 -0500 Received: by mail-pl1-f194.google.com with SMTP id w7so6805214plz.12; Sat, 16 Nov 2019 07:44:26 -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=WnvmRD6ZDU2PlgS2OgMDPMW99DMkDnT5Nicaq9xaRVQ=; b=LpBNNZt3Jm05bbw8HoNK2SAm9Xpy31GRwHQQXSZ+v3eYIJAnw2O3albN2ikQKCYRoB zAl6lFR3Ok1VyDqRhV6FxUTdIWanQdEzO/UcfeT9FmJrPPIIOr137DcCUMHus1ot1kgx 3iQ6TJQbCgHAsv7AiCHYpC5OPCoviKev0hhjOvAPdnTt8tN+8y/IDLNkTvoA5ljDRq/M OR5yPfz7oHn5okKYPKIgAPciL7L0aorvCzk0iQVDcADOumuD9qCX7AtfnzlDQlFLSS4Q TIdo0Qrh03y3Yn8X4QAWFXJal08aAu2UWi4RuTjtGJf6QecR+aICzyZmoqpm7ILnPl4n KSSA== 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=WnvmRD6ZDU2PlgS2OgMDPMW99DMkDnT5Nicaq9xaRVQ=; b=pMm6RvAPBlTLpjQ+Yin6FD2QaL0m58Ntd4CWkQHDHuff/yCpL3GQvDzYBYRVqqReX9 VEOU2XTkbvIYKBC3RWOsrqq1MqM8dKHrYjqNj9LuQvvdqlUDCof2VsUvx3uRI3JvzWek fMQvDZqU8doM5tAtUh/Gh9nJplffzUJHHxGoyrlFIGoQmnp7xwNETRudRilChDCS46NY aa9rrQzLIesQvPbrRn8eDC/13pdn9Z2rC4r6RnokoSM+KHPy9wzIdMs/tGccXWM7EKtv 6yW4/yhu1uyWxJAFpa2XpuZPjgYzdGgGsUl7Q+Wsw3V4luh4gSCgenKrqsrrCoQ6b3Zj +aKw== X-Gm-Message-State: APjAAAVB5+3B/QGJxzsn6/SFjHC9kyqR5ueeToTCZ4TqFnLQFqwAoac1 JlMns4giGOcgwWPEYc9+7Rs= X-Received: by 2002:a17:902:5988:: with SMTP id p8mr20737410pli.131.1573919066482; Sat, 16 Nov 2019 07:44:26 -0800 (PST) Received: from suzukaze.ipads-lab.se.sjtu.edu.cn ([202.120.40.82]) by smtp.gmail.com with ESMTPSA id i2sm14306327pgt.34.2019.11.16.07.44.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Nov 2019 07:44:25 -0800 (PST) From: Chuhong Yuan Cc: Jaya Kumar , Bartlomiej Zolnierkiewicz , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Chuhong Yuan Subject: [PATCH] video: fbdev: arcfb: add missed free_irq Date: Sat, 16 Nov 2019 23:44:16 +0800 Message-Id: <20191116154416.19390-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 irq in remove which is requested in probe. Add the missed call to fix it. Signed-off-by: Chuhong Yuan --- drivers/video/fbdev/arcfb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/video/fbdev/arcfb.c b/drivers/video/fbdev/arcfb.c index a48741aab240..7aed01f001a4 100644 --- a/drivers/video/fbdev/arcfb.c +++ b/drivers/video/fbdev/arcfb.c @@ -590,8 +590,11 @@ static int arcfb_probe(struct platform_device *dev) static int arcfb_remove(struct platform_device *dev) { struct fb_info *info = platform_get_drvdata(dev); + struct arcfb_par *par = info->par; if (info) { + if (irq) + free_irq(par->irq, info); unregister_framebuffer(info); vfree((void __force *)info->screen_base); framebuffer_release(info); -- 2.24.0