Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fec1868e authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

USB: properly pad out usb_device_id.driver_info



On some systems, struct usb_device_id doesn't align properly due to the
recent changes in it.  So pad out the driver_info field to align on a
boundry that systems can handle it.

Reported-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Acked-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Cc: Bjørn Mork <bjorn@mork.no>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 71c421db
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -122,7 +122,8 @@ struct usb_device_id {
	__u8		bInterfaceNumber;

	/* not matched against */
	kernel_ulong_t	driver_info;
	kernel_ulong_t	driver_info
		__attribute__((aligned(sizeof(kernel_ulong_t))));
};

/* Some useful macros to use to create struct usb_device_id */