Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: gadget: f_audio: Fix invalid dereference of initdata

as_out_ep_desc contines to be used during gadget enumeration and thus
should not be marked as __initdata

Signed-off-by: Martin Jackson <mjackson220.list@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Martin Jackson and committed by
Greg Kroah-Hartman
e6251a92 1e12c910

+1 -1
+1 -1
drivers/usb/gadget/f_audio.c
··· 177 177 }; 178 178 179 179 /* Standard ISO OUT Endpoint Descriptor */ 180 - static struct usb_endpoint_descriptor as_out_ep_desc __initdata = { 180 + static struct usb_endpoint_descriptor as_out_ep_desc = { 181 181 .bLength = USB_DT_ENDPOINT_AUDIO_SIZE, 182 182 .bDescriptorType = USB_DT_ENDPOINT, 183 183 .bEndpointAddress = USB_DIR_OUT,