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%3Ba=su...
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