* Re: [PATCH] drivers: core: ensure device has a name
[not found] <20230915011930.199009-1-ricardo@marliere.net>
@ 2023-09-15 6:51 ` Greg Kroah-Hartman
2023-09-15 12:03 ` Ricardo B. Marliere
0 siblings, 1 reply; 2+ messages in thread
From: Greg Kroah-Hartman @ 2023-09-15 6:51 UTC (permalink / raw)
To: Ricardo B. Marliere
Cc: Rafael J. Wysocki, linux-kernel, linux-kernel-mentees,
Shuah Khan, syzbot+bbc59256015533127d80
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] drivers: core: ensure device has a name
2023-09-15 6:51 ` [PATCH] drivers: core: ensure device has a name Greg Kroah-Hartman
@ 2023-09-15 12:03 ` Ricardo B. Marliere
0 siblings, 0 replies; 2+ messages in thread
From: Ricardo B. Marliere @ 2023-09-15 12:03 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: Rafael J. Wysocki, linux-kernel, linux-kernel-mentees,
Shuah Khan, syzbot+bbc59256015533127d80
On 23/09/15 08:51AM, Greg Kroah-Hartman wrote:
> 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
Ah, of course. I'll do a better job grepping the mail next time :)
Thanks for reviewing,
- Ricardo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-09-15 12:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20230915011930.199009-1-ricardo@marliere.net>
2023-09-15 6:51 ` [PATCH] drivers: core: ensure device has a name Greg Kroah-Hartman
2023-09-15 12:03 ` Ricardo B. Marliere
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®