Message ID | 20160212231912.GA7034@obsidianresearch.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <tpmdd-devel-bounces@lists.sourceforge.net> X-Original-To: patchwork-tpmdd-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id ABB23C02AA for <patchwork-tpmdd-devel@patchwork.kernel.org>; Fri, 12 Feb 2016 23:19:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CD1A720452 for <patchwork-tpmdd-devel@patchwork.kernel.org>; Fri, 12 Feb 2016 23:19:26 +0000 (UTC) Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DCA7020451 for <patchwork-tpmdd-devel@patchwork.kernel.org>; Fri, 12 Feb 2016 23:19:25 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=sfs-ml-2.v29.ch3.sourceforge.com) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from <tpmdd-devel-bounces@lists.sourceforge.net>) id 1aUMzk-0008DP-2W; Fri, 12 Feb 2016 23:19:24 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from <jgunthorpe@obsidianresearch.com>) id 1aUMzj-0008DJ-2O for tpmdd-devel@lists.sourceforge.net; Fri, 12 Feb 2016 23:19:23 +0000 Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of obsidianresearch.com designates 184.70.90.242 as permitted sender) client-ip=184.70.90.242; envelope-from=jgunthorpe@obsidianresearch.com; helo=quartz.orcorp.ca; Received: from quartz.orcorp.ca ([184.70.90.242]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) id 1aUMzh-00045T-T6 for tpmdd-devel@lists.sourceforge.net; Fri, 12 Feb 2016 23:19:22 +0000 Received: from [10.0.0.160] (helo=jggl.edm.orcorp.ca) by quartz.orcorp.ca with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84) (envelope-from <jgunthorpe@obsidianresearch.com>) id 1aUMzY-0003zr-LV; Fri, 12 Feb 2016 16:19:12 -0700 Received: from jgg by jggl.edm.orcorp.ca with local (Exim 4.84) (envelope-from <jgunthorpe@obsidianresearch.com>) id 1aUMzY-0003m4-Fi; Fri, 12 Feb 2016 16:19:12 -0700 Date: Fri, 12 Feb 2016 16:19:12 -0700 From: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> To: Stefan Berger <stefanb@us.ibm.com> Message-ID: <20160212231912.GA7034@obsidianresearch.com> References: <201602112226.u1BMQZ59031657@d01av02.pok.ibm.com> <20160211235611.GB16304@obsidianresearch.com> <201602120353.u1C3rYif023135@d01av05.pok.ibm.com> <20160212184051.GB4289@obsidianresearch.com> <201602122031.u1CKVIOp028400@d03av03.boulder.ibm.com> <20160212203956.GB10540@obsidianresearch.com> <201602122044.u1CKiMbR023495@d03av03.boulder.ibm.com> <20160212211538.GA20737@obsidianresearch.com> <201602122223.u1CMNJXl023711@d01av01.pok.ibm.com> <201602122247.u1CMlFni023527@d03av04.boulder.ibm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <201602122247.u1CMlFni023527@d03av04.boulder.ibm.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Broken-Reverse-DNS: no host name found for IP address 10.0.0.160 X-Spam-Score: -1.5 (-) X-Headers-End: 1aUMzh-00045T-T6 Cc: dhowells@redhat.com, tpmdd-devel@lists.sourceforge.net, dwmw2@infradead.org Subject: Re: [tpmdd-devel] [PATCH v5 4/5] Initialize TPM and get durations and timeouts X-BeenThere: tpmdd-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Tpm Device Driver maintainance <tpmdd-devel.lists.sourceforge.net> List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/tpmdd-devel>, <mailto:tpmdd-devel-request@lists.sourceforge.net?subject=unsubscribe> List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=tpmdd-devel> List-Post: <mailto:tpmdd-devel@lists.sourceforge.net> List-Help: <mailto:tpmdd-devel-request@lists.sourceforge.net?subject=help> List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/tpmdd-devel>, <mailto:tpmdd-devel-request@lists.sourceforge.net?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: tpmdd-devel-bounces@lists.sourceforge.net X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00, HK_RANDOM_ENVFROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
--- a/drivers/char/tpm/tpm-chip.c +++ b/drivers/char/tpm/tpm-chip.c @@ -305,6 +305,8 @@ void tpm_chip_unregister(struct tpm_chip *chip) sysfs_remove_link(&chip->pdev->kobj, "ppi"); tpm1_chip_unregister(chip); + chip->priv = NULL; + chip->ops = NULL; tpm_dev_del_device(chip); } EXPORT_SYMBOL_GPL(tpm_chip_unregister);