Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp421343pxb; Fri, 15 Jan 2021 17:27:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJzwSr5u2ejzi80eu42x14cmgTrmeLxmfq0SdDPD1hfw5vuxYpg2caDThjzXByai1WqrEnLP X-Received: by 2002:a05:6402:45:: with SMTP id f5mr11767979edu.273.1610760458136; Fri, 15 Jan 2021 17:27:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610760458; cv=none; d=google.com; s=arc-20160816; b=c0ytZvCRb5cciWl7IOHJl7Ep3GcRAU3GFiIqzknjO6iU7DGblOvn2mQGIvihnmhpnS ThQRJGFtn+MbIqeS5bth0g9Vq2ap93tx1bL2mZv4KjjFxcXdlNBjnn4uUBBgmZ8ywu/q u2x1NztB+J94zFjT4+ShKqH6Zbr4OzHlY1XLfxrxHDZLtq0Mc7q3c6YvbqNHE1FE85F/ CI29fahoAyfKHg7AE2wcifUM5BaRmv2W8klDfBU8tfEtsg/2vtuAjTN7SoEq3Q/zoG0M Ztmm3EDgrwx5V9nc5tWePq0L0OjW1my595gIbylMFyPSXY0kBe4du/eDCfqGts4dAZQU WuaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=sU8YQsvbKQYhN/G29m61OE8y2Uu1LABcxzHXm0vxrvM=; b=tJ03ul0YBErGZgBg3IofHt1lNHk3HePCHtL3nvU8Su7Ak2OyHhlNi7Eok2F6NSDpoG XEwZUdFGSp3WSaklJWB0ZwdkK2fE95FQfPwVuQA5mR/yDaXahniOe4GEB76oWWml1TMp Onuj7wpB+YGuersJryW67ScpCFIdc/cAKj7EElXlZTGcruM2JQXJ7thFSqO2jebGrbA2 GvBbQlXy7vubbovLxoWvwTTLr+Uxbczx+/YWnG4GMVVx7mXDrz7W2DzfUBpVKod+Jo+e rfyCbHF4lLaeGOZ5mst7UVXrIJo3bwAIQz1Q1SDo0eD+xvXKwOGFHFIJ6Jj7ngrzdt/U XvWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=OYB0uL9X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dj28si4898843edb.352.2021.01.15.17.27.15; Fri, 15 Jan 2021 17:27:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=OYB0uL9X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728805AbhAPBZX (ORCPT + 99 others); Fri, 15 Jan 2021 20:25:23 -0500 Received: from mout.gmx.net ([212.227.15.19]:59515 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbhAPBZR (ORCPT ); Fri, 15 Jan 2021 20:25:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1610760217; bh=sU8YQsvbKQYhN/G29m61OE8y2Uu1LABcxzHXm0vxrvM=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=OYB0uL9XVIzz8IYa6FfGQuHpvegFVAlz9pZTr7zb1qkHDd+5xReB+RHvx9PEnR7aj 3uKUIphAy+Y4ognsAnMeLzYNumIV8dNaVtwfOeeb0FoWAkxl91aGG7dxDUiaJLg5Vn P2PnilSXDQIixi3aYUGGuJo/hcKjrkE79jDTqe8U= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from Venus.fritz.box ([78.42.220.31]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mel7v-1lbIi42EDt-00aloa; Sat, 16 Jan 2021 02:23:37 +0100 From: Lino Sanfilippo To: peterhuewe@gmx.de, jarkko@kernel.org Cc: jgg@ziepe.ca, stefanb@linux.vnet.ibm.com, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, LinoSanfilippo@gmx.de, p.rosenberger@kunbus.com, Lino Sanfilippo Subject: [PATCH 1/4] tpm: in case of error properly cleanup in tpmm_chip_alloc Date: Sat, 16 Jan 2021 02:22:38 +0100 Message-Id: <1610760161-21982-2-git-send-email-LinoSanfilippo@gmx.de> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1610760161-21982-1-git-send-email-LinoSanfilippo@gmx.de> References: <1610760161-21982-1-git-send-email-LinoSanfilippo@gmx.de> MIME-Version: 1.0 Content-Transfer-Encoding: base64 X-Provags-ID: V03:K1:XMRS6IV1vQAXXnwmkT5jix2/34hu6QM48KWS8YXNLuPRA5+WXe1 v+n56Ee21NpJFMnVLGEpUZYG4FrtEShP0F0zo+7syBfd295zVQMOY5i8TaVnhG3ddDM1Pbn vxFY0/DqMoXIr9f9GSnSgMouJ2hdQlXtBE+H4h++PeMcF/hcDtODOfU6ER4FN4jSC722les PuWk4Yu8KjUZOnoqRmBOg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:91VIO+yOdKk=:wicV/sFy5vMsPxMUDYzxIy oVvuYULW7atS3wRMVgHTkAofayl5wbvByUMzoWMAh6Md9I2Xa5YKNb+Pvay4YyeXIAHh7BFPx Nl+83xoYIXlwhiFQmHv+NtYAou1IDTKvVsgFQ2lJy0mpPnOU/iWHpKFWBFk7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