From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: "Ricardo B. Marliere" <ricardo@marliere.net>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>,
linux-kernel@vger.kernel.org,
linux-kernel-mentees@lists.linuxfoundation.org,
Shuah Khan <skhan@linuxfoundation.org>,
syzbot+bbc59256015533127d80@syzkaller.appspotmail.com
Subject: Re: [PATCH] drivers: core: ensure device has a name
Date: Fri, 15 Sep 2023 08:51:45 +0200 [thread overview]
Message-ID: <2023091533-subdued-antler-d6ac@gregkh> (raw)
In-Reply-To: <20230915011930.199009-1-ricardo@marliere.net>
On Thu, Sep 14, 2023 at 10:19:31PM -0300, Ricardo B. Marliere wrote:
> device_add() relies on dev_name() and dev_set_name() to set the device
> name. This patch adds the fallback case where both the call to
> dev_name() and (dev->bus && dev->bus->dev_name) fails.
>
> Reported-by: syzbot+bbc59256015533127d80@syzkaller.appspotmail.com
> Closes: https://syzkaller.appspot.com/bug?extid=bbc59256015533127d80
> Fixes: d21fdd07cea4 ("driver core: Return proper error code when dev_set_name() fails")
> Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
> ---
> drivers/base/core.c | 2 ++
> 1 file changed, 2 insertions(+)
Already submitted and in linux-next:
https://lore.kernel.org/r/20230828145824.3895288-1-andriy.shevchenko@linux.intel.com
next parent reply other threads:[~2023-09-15 6:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20230915011930.199009-1-ricardo@marliere.net>
2023-09-15 6:51 ` Greg Kroah-Hartman [this message]
2023-09-15 12:03 ` Ricardo B. Marliere
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=2023091533-subdued-antler-d6ac@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=linux-kernel-mentees@lists.linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=ricardo@marliere.net \
--cc=skhan@linuxfoundation.org \
--cc=syzbot+bbc59256015533127d80@syzkaller.appspotmail.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®