Patch "USB: serial: bus: fix const issue in usb_serial_device_match()" has been added to the 6.15-stable tree
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Sasha,
Quoted 29 lines · Sasha Levin
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=summaryThe 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 <[email protected]> know about it.
commit
0e91be50efc1a26ec9047dadc980631d31ef8578Author: Greg Kroah-Hartman <[email protected]> Date: Wed May 21 15:41:34 2025 +0200USB: 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.
Quoted 4 lines
Fixes d69d80484598 ("driver core: have match() callback in struct bus_type take a const *")Signed-off-by Greg Kroah-Hartman <[email protected]>Signed-off-by Johan Hovold <[email protected]>Signed-off-by Sasha Levin <[email protected]>
This patch does not need to be backported and I left out the stable patch on purpose as usual.
Please drop.
Johan