Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2926437ybh; Mon, 5 Aug 2019 09:05:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTjvhCeLv1p2RxBhYR8tdYZZ1wPBwr7zHB0PrpFecO25J1OQDlyIBaXgO3wO02E4iVD9M/ X-Received: by 2002:a17:902:9a07:: with SMTP id v7mr37931752plp.245.1565021102971; Mon, 05 Aug 2019 09:05:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565021102; cv=none; d=google.com; s=arc-20160816; b=K7xTE5qnBtzp05wrU5T5cDAzZE0W6jWST/nusOH3jaGcr7uhH9/Bp7mkj2Hl80bLwI cqSQbdZVeFyXHbghGPohe3Kqv4P1bzaSssJSTt0cEnWKo3U7l6vaBVJ9+aV9d87NT7Z2 2q5dfedQJysOHZ3BZfzF4gTi4MVjP0hsfIypoAFiWwS44S4naJR7iJ4lWiR/Jwfj+TAX vnMNwVtEV4mf4daHB658wMD1n/tjLnKfk4EL3aRIJQx8kRnVTqzQWML08Agbd3Hy7xEm 7NVyTL6AM5ZPFWktHRyOJvahAX3gzDQCI5xSDTvelzewKLGOSVjPEb5B1EzydH5DALNs 0vjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/atQO8upnSIxjZFWbzwjewwcU7Pl/S5HrTw3sMMSaWk=; b=IkT3Wc5UPBckhbKOjY24svK8GGHL4PerixDTazGsD6fuRM+l2KRknlqnDLKOHLr7my l/1R3Lknr9hDzNPUiRaRfN0SfUYn3f3rtnfCePH9km82ygBR8GSbsrDfMe4XXv/Acehe BnhEAg1A2NeFe8JwMZCD011yIhotfpSe1Hj+RwWg/Z+9U2ukypG4Tseufd/9WyBfy1RC 5rhzQP8BBiFLrBmK5V11fc7PmRSA9x8+M2SsnMWiUxtpbO3zsHz1T/nt4TvZKtQxfLUN NnEOhLUjOhwk1MOQKp3qBMhXBMeysV7awTywXIDOfP/o7YOv1DeooCxWip1lFvyxdK2i aUxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=br2qjvk4; 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=pass (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 c11si13565836pjq.0.2019.08.05.09.04.47; Mon, 05 Aug 2019 09:05:02 -0700 (PDT) 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=pass header.i=@gmail.com header.s=20161025 header.b=br2qjvk4; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729546AbfHEQDj (ORCPT + 99 others); Mon, 5 Aug 2019 12:03:39 -0400 Received: from mail-pf1-f170.google.com ([209.85.210.170]:32883 "EHLO mail-pf1-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727802AbfHEQDj (ORCPT ); Mon, 5 Aug 2019 12:03:39 -0400 Received: by mail-pf1-f170.google.com with SMTP id g2so39882199pfq.0; Mon, 05 Aug 2019 09:03:38 -0700 (PDT) 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== 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=Dde7lgspUEmddEPX+jyVJyAMC3Ykykve3ziCf5dLj713/g6LJCB1tFAn568hJ+L/v6 zdvHHWJwz5z0S4tBCdO41ZD2Du6uOqyQ8H+F5FMfa/cWtnqmxlTeG1vdKMZ0sMZ+wmwy kVgiiNAQ0vq6ldKhV3/vlia6BKoUAcEPOckpANVaqf6GZkuThvd3D1pyAKUKeJfndg7U uqtN7i6WW7ICkQdqmNOI67ldGejtLLS4rep3UMbVycwTSp8If7gbDH4XnBNOnRoI8Ogb DFI/1w7fvfKlYrZl8fzFb79VIz59YYbuN/hYf5okNW780ox9krIkOZKmhwbH540ZKeca ikfg== X-Gm-Message-State: APjAAAWvNLV/i7Q56P7ulBlHsOQAIZ0qB/Kmrqrr8b+URfMaW3zJrVqm +n5S67Oc/rHhphJfNwD0AWU= 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 Cc: David Airlie , Daniel Vetter , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Sergey Senozhatsky Subject: [PATCHv2 3/3] i915: do not leak module ref counter 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); -- 2.22.0