From patchwork Tue Aug 20 03:13:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 11103769 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0C9441399 for ; Tue, 20 Aug 2019 12:51:47 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E948122CF7 for ; Tue, 20 Aug 2019 12:51:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E948122CF7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7C1086E7A0; Tue, 20 Aug 2019 12:51:46 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by gabe.freedesktop.org (Postfix) with ESMTPS id 31CED6E5C0; Tue, 20 Aug 2019 03:14:25 +0000 (UTC) Received: by mail-pf1-x432.google.com with SMTP id w2so2441766pfi.3; Mon, 19 Aug 2019 20:14:25 -0700 (PDT) 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=K4of2PnnHi951vdKUeK2K+sxyHzoe/hoiqAy/eVEirM=; b=hhOT5wK8dCRMhIqvUTqf1ob1Rb6kHKEYRRVPPNxQfU96t/u+u/87lw0tFIQzmEdEAi azYhci2Z9HEyOW1/PJiMvnKcBaGQ/2S8nDlrg1I6657YAKM7MtAKgc0pMxYI5PFZ53YQ I6CFQC0WxhkLm6wPSa96npdKgN66RU6KoCL0PwOJZ0uYW09o5dQHHgelzRFYj1KLoVJA RQrF/FmJ0ag+NEGAL6GucolKSL5RbkGzkjJE9gQpewp1oRf+uFRmtW8q/Ng2JhNGCmIF fNAHRh2YRACJ6xlrLoX+B6A+/H3x2DOI0CDmtZa9fXyl+DdN5cVeG0xFhYFSeqFYbfIk cm+g== X-Gm-Message-State: APjAAAW0Tz7cuI41h7AHr5FCrzL2X8wKbJwyAGnB1i5/EDyzKHc9UKr5 4hdiRk1OMHDHWFEKUOG/2qc= X-Google-Smtp-Source: APXvYqz9a/3SyryqSwUMcB7DFqYmpTTlG+WpK9xSoJbY4pJWLd2w/rkmZkHdR5wOYLwXn7nrZmj2Kg== X-Received: by 2002:a65:52c5:: with SMTP id z5mr22933012pgp.118.1566270864801; Mon, 19 Aug 2019 20:14:24 -0700 (PDT) Received: from localhost.localdomain ([175.223.16.125]) by smtp.gmail.com with ESMTPSA id y16sm22979651pfc.36.2019.08.19.20.14.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2019 20:14:24 -0700 (PDT) From: Sergey Senozhatsky X-Google-Original-From: Sergey Senozhatsky To: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Chris Wilson , Alexander Viro , David Howells , Christoph Hellwig Date: Tue, 20 Aug 2019 12:13:59 +0900 Message-Id: <20190820031359.11717-2-sergey.senozhatsky@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190820031359.11717-1-sergey.senozhatsky@gmail.com> References: <20190820031359.11717-1-sergey.senozhatsky@gmail.com> MIME-Version: 1.0 X-Mailman-Approved-At: Tue, 20 Aug 2019 12:51:45 +0000 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=K4of2PnnHi951vdKUeK2K+sxyHzoe/hoiqAy/eVEirM=; b=qnvx2lkhaPKZ2PX5FAyasqmmW2NoOyz64n3FGHz179t53oPUjxZUlnwbnIk+4Dlg3D EzguXrsYM8ygUZVVDCwCFcdo/++fB2CYHoLBUbn3WUEqKpQhN1+UTg5OpFs1B18ai88u 3v1SzY7sxLZQFdWWUYgFwNh3giTFWs3V9tuVqjLxgZTxsXGT5wbirhQd2czpspT5FoNL ibmdQmM2egXzqR1sqZU/Hu66LpSBAIosjOCr6WLfQJtNJKEMZPuz2fDM1qzHWI7nr6nU sT+WvHPw5Y5bSv8PuGW2oXUaxI3njyq7YSYoplv4frx38erw+my9Z7S0Lh6ELbGgpW8q brug== Subject: [Intel-gfx] [PATCHv2 2/2] i915: do not leak module ref counter X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-fsdevel@vger.kernel.org, Sergey Senozhatsky , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Always put_filesystem() in i915_gemfs_init(). Signed-off-by: Sergey Senozhatsky --- - v2: rebased (i915 does not remount gemfs anymore) drivers/gpu/drm/i915/gem/i915_gemfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/gem/i915_gemfs.c b/drivers/gpu/drm/i915/gem/i915_gemfs.c index 5e6e8c91ab38..0a398e1e45fc 100644 --- a/drivers/gpu/drm/i915/gem/i915_gemfs.c +++ b/drivers/gpu/drm/i915/gem/i915_gemfs.c @@ -30,6 +30,7 @@ int i915_gemfs_init(struct drm_i915_private *i915) */ gemfs = kern_mount(type); + put_filesystem(type); if (IS_ERR(gemfs)) return PTR_ERR(gemfs);