Files
linux/drivers/usb/core
Kars Mulder b1b6bed3b5 usb: core: fix quirks_param_set() writing to a const pointer
The function quirks_param_set() takes as argument a const char* pointer
to the new value of the usbcore.quirks parameter. It then casts this
pointer to a non-const char* pointer and passes it to the strsep()
function, which overwrites the value.

Fix this by creating a copy of the value using kstrdup() and letting
that copy be written to by strsep().

Fixes: 027bd6cafd ("usb: core: Add "quirks" parameter for usbcore")
Signed-off-by: Kars Mulder <kerneldev@karsmulder.nl>

Link: https://lore.kernel.org/r/5ee2-5f048a00-21-618c5c00@230659773
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-07-21 13:38:21 +02:00
..
2019-08-15 15:18:05 +02:00
2020-07-10 08:55:17 +02:00
2020-07-10 08:55:17 +02:00
2020-07-10 08:55:17 +02:00
2019-06-26 10:28:09 +08:00
2020-06-18 10:13:16 +02:00
2020-07-10 08:55:17 +02:00
2020-07-01 14:04:04 +02:00