From: Frederic Weisbecker <frederic@kernel.org>
To: Yu-Chun Lin <eleanor15x@gmail.com>
Cc: akpm@linux-foundation.org, vbabka@suse.cz,
jserv@ccns.ncku.edu.tw, visitorckw@gmail.com,
linux-kernel@vger.kernel.org, kernel test robot <lkp@intel.com>
Subject: Re: [PATCH] kthread: Fix return value on kzalloc() failure in kthread_affine_preferred()
Date: Thu, 30 Jan 2025 18:10:19 +0100 [thread overview]
Message-ID: <Z5uye0c5JQ9tZ1f4@localhost.localdomain> (raw)
In-Reply-To: <20250130144849.1249084-1-eleanor15x@gmail.com>
Le Thu, Jan 30, 2025 at 10:48:49PM +0800, Yu-Chun Lin a écrit :
> kthread_affine_preferred() incorrectly returns 0 instead of -ENOMEM
> when kzalloc() fails. Return 'ret' to ensure the correct error code is
> propagated.
>
> Fixes: 4d13f4304fa4 ("kthread: Implement preferred affinity")
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202501301528.t0cZVbnq-lkp@intel.com/
> Signed-off-by: Yu-Chun Lin <eleanor15x@gmail.com>
Queued. Thanks!
prev parent reply other threads:[~2025-01-30 17:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-30 14:48 Yu-Chun Lin
2025-01-30 17:10 ` Frederic Weisbecker [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=Z5uye0c5JQ9tZ1f4@localhost.localdomain \
--to=frederic@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=eleanor15x@gmail.com \
--cc=jserv@ccns.ncku.edu.tw \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=vbabka@suse.cz \
--cc=visitorckw@gmail.com \
/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
all inboxes | Powered by JetHome®