From patchwork Mon Aug 5 16:03:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 11077269 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 540E314E5 for ; Mon, 5 Aug 2019 16:03:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 439F42094F for ; Mon, 5 Aug 2019 16:03:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 378CD28711; Mon, 5 Aug 2019 16:03:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F232C22A65 for ; Mon, 5 Aug 2019 16:03:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7617F6E4F8; Mon, 5 Aug 2019 16:03:39 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by gabe.freedesktop.org (Postfix) with ESMTPS id AA9406E4E1; Mon, 5 Aug 2019 16:03:38 +0000 (UTC) Received: by mail-pg1-x535.google.com with SMTP id u17so39975707pgi.6; Mon, 05 Aug 2019 09:03:38 -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=/atQO8upnSIxjZFWbzwjewwcU7Pl/S5HrTw3sMMSaWk=; b=GCcVlBv68ZSwKpiKSZD5tY7rYyd7ULBD+Zbyy9fmcFBA4cR67qBQLga5E+I07o99U/ vmqjka1Y6RFXRWVne6R4RbnRDb/kDIR4N9f1Eiw8sxgh0pxlYp0ZNzetLbjneyiwlLTC KzoB27cyi5RvfYnxlPhNj/cEEB328kyvn+BqR2OVaqORqfQEGA1QC5/MAr7IdLsAAgSG bYBXyC4A+v9jHguh5YqzHL2SIyNLkAvygiRYV7pvFncQzloQTmcJMKYpBWqKggFkOoEM Agquv644cEw2EBSz7Lp7ze603fIBctsULWNm4e+jBPDwNCqKlcWu7sb4nW2ewP69J5+B xqfQ== X-Gm-Message-State: APjAAAXZboW0fwKGugMSMaz5Gyx8gk/B0SnP5qR/eLcFI7HW0HTWuCqp ZzVQWWd6W/OGopo3jiHy8ko= X-Google-Smtp-Source: APXvYqwUMiDt9hI1FWfkjg6AfQy18Y9cjnzyUO0I8M+djjPTHDl4u6c97cQ4l/WmELIE44LZd4B54w== X-Received: by 2002:aa7:8817:: with SMTP id c23mr74674861pfo.146.1565021018143; Mon, 05 Aug 2019 09:03:38 -0700 (PDT) Received: from localhost.localdomain ([121.137.63.184]) by smtp.gmail.com with ESMTPSA id n98sm17061262pjc.26.2019.08.05.09.03.33 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 05 Aug 2019 09:03:37 -0700 (PDT) From: Sergey Senozhatsky To: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Chris Wilson , Alexander Viro , David Howells , Christoph Hellwig Date: Tue, 6 Aug 2019 01:03:07 +0900 Message-Id: <20190805160307.5418-4-sergey.senozhatsky@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190805160307.5418-1-sergey.senozhatsky@gmail.com> References: <20190805160307.5418-1-sergey.senozhatsky@gmail.com> MIME-Version: 1.0 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=/atQO8upnSIxjZFWbzwjewwcU7Pl/S5HrTw3sMMSaWk=; b=br2qjvk4qVQV+0wLGSAL40ExMnkokkHbHdnkt7eeD89dKuOBSjW/HmWeXIgFxr+xJH GNZnp38Fnbq0wQa+IUgeC2QFTAExUJYAxt8OYs3y+16fv5Yop8b+27sI5k6dm78JQcAM yfip/ukg1EiNusqYh7t4qtFqTMh0Sw93A249CIZ0vq2ox1TzeX+Vy2i43JlxI9905zMF AmYFMhhVfJTvYudH5rsHdBJ9WICusBYw8Kb3ggFef0VaSpHgryF0HImG/6GuPKU7YrtA M/ozz7qA9fJBBmx1ZpJBpslL8Lit3syIctcM+7FQSZeKZYuWOzJ30jJhQmz2DBMgmbrI yLxg== Subject: [Intel-gfx] [PATCHv2 3/3] 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: David Airlie , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Sergey Senozhatsky , linux-fsdevel@vger.kernel.org Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP put_filesystem() must follow get_fs_type(). Signed-off-by: Sergey Senozhatsky --- 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 feedc9242072..93ac365ce9ce 100644 --- a/drivers/gpu/drm/i915/gem/i915_gemfs.c +++ b/drivers/gpu/drm/i915/gem/i915_gemfs.c @@ -24,6 +24,7 @@ int i915_gemfs_init(struct drm_i915_private *i915) return -ENODEV; gemfs = kern_mount(type); + put_filesystem(type); if (IS_ERR(gemfs)) return PTR_ERR(gemfs);