genode/repos/dde_linux/patches/usb_message.patch
Roland Bär b9b18c92d0 usb_host: deliver UTF-16 strings on request
Linux kernel static functions usb_string_sub() and usb_get_langid() were
made accessible to implement robust string rerieval.

Fixes #4756
Fixes #4757
Fixes #4772
2023-03-13 14:32:37 +01:00

20 lines
457 B
Diff

+++ src/linux/drivers/usb/core/message.c
@@ -869,7 +869,7 @@
}
}
-static int usb_string_sub(struct usb_device *dev, unsigned int langid,
+int usb_string_sub(struct usb_device *dev, unsigned int langid,
unsigned int index, unsigned char *buf)
{
int rc;
@@ -906,7 +906,7 @@
return rc;
}
-static int usb_get_langid(struct usb_device *dev, unsigned char *tbuf)
+int usb_get_langid(struct usb_device *dev, unsigned char *tbuf)
{
int err;