diff options
author | Martin Jackson <mjackson220.list@gmail.com> | 2011-05-17 11:02:06 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-05-17 11:20:24 -0700 |
commit | e6251a921716fca9c2e3008af2d8d0d5657a59bc (patch) | |
tree | 3dec7b504a4544fc329197839883e3e92efed8c8 | |
parent | 1e12c910eed82da6971f1c0421a069c680faba2e (diff) | |
download | op-kernel-dev-e6251a921716fca9c2e3008af2d8d0d5657a59bc.zip op-kernel-dev-e6251a921716fca9c2e3008af2d8d0d5657a59bc.tar.gz |
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>
-rw-r--r-- | drivers/usb/gadget/f_audio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/f_audio.c b/drivers/usb/gadget/f_audio.c index 0111f8a..8ee330a 100644 --- a/drivers/usb/gadget/f_audio.c +++ b/drivers/usb/gadget/f_audio.c @@ -177,7 +177,7 @@ static struct uac_format_type_i_discrete_descriptor_1 as_type_i_desc = { }; /* Standard ISO OUT Endpoint Descriptor */ -static struct usb_endpoint_descriptor as_out_ep_desc __initdata = { +static struct usb_endpoint_descriptor as_out_ep_desc = { .bLength = USB_DT_ENDPOINT_AUDIO_SIZE, .bDescriptorType = USB_DT_ENDPOINT, .bEndpointAddress = USB_DIR_OUT, |