All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Patch "USB: serial: bus: fix const issue in usb_serial_device_match()" has been added to the 6.15-stable tree
       [not found] <20250610121813.1558278-1-sashal@kernel.org>
@ 2025-06-10 12:26 ` Johan Hovold
  0 siblings, 0 replies; only message in thread
From: Johan Hovold @ 2025-06-10 12:26 UTC (permalink / raw)
  To: stable; +Cc: stable-commits, gregkh

Hi Sasha,

On Tue, Jun 10, 2025 at 08:18:13AM -0400, Sasha Levin wrote:
> This is a note to let you know that I've just added the patch titled
> 
>     USB: serial: bus: fix const issue in usb_serial_device_match()
> 
> to the 6.15-stable tree which can be found at:
>     http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
> 
> The filename of the patch is:
>      usb-serial-bus-fix-const-issue-in-usb_serial_device_.patch
> and it can be found in the queue-6.15 subdirectory.
> 
> If you, or anyone else, feels it should not be added to the stable tree,
> please let <stable@vger.kernel.org> know about it.
> 
> 
> 
> commit 0e91be50efc1a26ec9047dadc980631d31ef8578
> Author: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Date:   Wed May 21 15:41:34 2025 +0200
> 
>     USB: serial: bus: fix const issue in usb_serial_device_match()
>     
>     [ Upstream commit 92cd405b648605db4da866f3b9818b271ae84ef0 ]
>     
>     usb_serial_device_match() takes a const pointer, and then decides to
>     cast it away into a non-const one, which is not a good thing to do
>     overall.  Fix this up by properly setting the pointers to be const to
>     preserve that attribute.
>     
>     Fixes: d69d80484598 ("driver core: have match() callback in struct bus_type take a const *")
>     Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
>     Signed-off-by: Johan Hovold <johan@kernel.org>
>     Signed-off-by: Sasha Levin <sashal@kernel.org>

This patch does not need to be backported and I left out the stable
patch on purpose as usual.

Please drop.

Johan

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-06-10 12:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20250610121813.1558278-1-sashal@kernel.org>
2025-06-10 12:26 ` Patch "USB: serial: bus: fix const issue in usb_serial_device_match()" has been added to the 6.15-stable tree Johan Hovold

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.