[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aFxuADgb2C9DaFrh@kernel.org>
Date: Thu, 26 Jun 2025 00:45:36 +0300
From: Jarkko Sakkinen <jarkko@...nel.org>
To: linux-kernel@...r.kernel.org
Cc: keyrings@...r.kernel.org, Jarkko Sakkinen <jarkko.sakkinen@...nsys.com>,
Peter Huewe <peterhuewe@....de>, Jason Gunthorpe <jgg@...pe.ca>,
James Bottomley <James.Bottomley@...senpartnership.com>,
Mimi Zohar <zohar@...ux.ibm.com>,
David Howells <dhowells@...hat.com>,
Paul Moore <paul@...l-moore.com>, James Morris <jmorris@...ei.org>,
"Serge E. Hallyn" <serge@...lyn.com>,
"open list:TPM DEVICE DRIVER" <linux-integrity@...r.kernel.org>,
"open list:SECURITY SUBSYSTEM" <linux-security-module@...r.kernel.org>
Subject: Re: [PATCH] tpm: Create cleanup class for tpm_buf
On Thu, Jun 26, 2025 at 12:37:56AM +0300, Jarkko Sakkinen wrote:
> From: Jarkko Sakkinen <jarkko.sakkinen@...nsys.com>
>
> Define a cleanup for tpm_buf, which will caused tpm_buf_destroy()
> automatically called at the end of a function scope. This will
> significantly decrease the likelihood of memory leaks.
Oops, this did not go well.
Here's a corrected version.
"Define a cleanup class for struct tpm_buf, which will take
the responsibility of calling tpm_buf_destroy() automatically
when tpm_buf instance is going out of scope."
For the code change itself I noticed that I missed tpm-sysfs.c
i.e., v2 coming post the feedback for this.
BR, Jarkko
Powered by blists - more mailing lists