From: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
To: Colin Ian King <colin.i.king@gmail.com>,
Peter Huewe <peterhuewe@gmx.de>,
Jarkko Sakkinen <jarkko@kernel.org>,
Jason Gunthorpe <jgg@ziepe.ca>,
linux-integrity@vger.kernel.org
Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH][next] tpm: remove kmalloc failure error message
Date: Tue, 29 Apr 2025 20:42:26 +0200 [thread overview]
Message-ID: <a07bec9d-26db-4270-bb75-49c9d3b6b91b@wanadoo.fr> (raw)
In-Reply-To: <20250429171454.828003-1-colin.i.king@gmail.com>
Le 29/04/2025 à 19:14, Colin Ian King a écrit :
> The kmalloc failure message is just noise. Remove it.
>
> ---
>
> V2: remove entire message, originally just removed a trailing space
>
> Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Hi,
The S-o-b tag is not correctly placed.
CJ
> ---
> drivers/char/tpm/eventlog/tpm1.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/drivers/char/tpm/eventlog/tpm1.c b/drivers/char/tpm/eventlog/tpm1.c
> index 12ee42a31c71..773e9e537991 100644
> --- a/drivers/char/tpm/eventlog/tpm1.c
> +++ b/drivers/char/tpm/eventlog/tpm1.c
> @@ -257,11 +257,8 @@ static int tpm1_ascii_bios_measurements_show(struct seq_file *m, void *v)
> (unsigned char *)(v + sizeof(struct tcpa_event));
>
> eventname = kmalloc(MAX_TEXT_EVENT, GFP_KERNEL);
> - if (!eventname) {
> - printk(KERN_ERR "%s: ERROR - No Memory for event name\n ",
> - __func__);
> + if (!eventname)
> return -EFAULT;
> - }
>
> /* 1st: PCR */
> seq_printf(m, "%2d ", do_endian_conversion(event->pcr_index));
prev parent reply other threads:[~2025-04-29 18:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-29 17:14 [PATCH][next] tpm: remove kmalloc failure error message Colin Ian King
2025-04-29 18:42 ` Christophe JAILLET [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a07bec9d-26db-4270-bb75-49c9d3b6b91b@wanadoo.fr \
--to=christophe.jaillet@wanadoo.fr \
--cc=colin.i.king@gmail.com \
--cc=jarkko@kernel.org \
--cc=jgg@ziepe.ca \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-integrity@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=peterhuewe@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).