W dniu 02.07.2014 13:04, Peter Stuge pisze:
Andrzej Pietrasiewicz wrote:
+++ b/include/uapi/linux/usb/functionfs.h
@@ -33,6 +32,42 @@ struct usb_endpoint_descriptor_no_audio {
..
+/* MS OS Extended Compatibility Descriptor header */
+struct usb_ext_compat_desc_header {
+       struct  usb_os_desc_header header;
+       __u8    bCount;
+       __u8    Reserved;
+} __attribute__((packed));
+
+struct usb_ext_compat_desc {
+       __u8    bFirstInterfaceNumber;
+       __u8    Reserved1;
+       __u8    CompatibleID[8];
+       __u8    SubCompatibleID[8];
+       __u8    Reserved2[6];
+};

Shouldn't usb_ext_compat_desc be packed too, like all the others?

Good catch, thanks!

AP

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to