projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e12c91
)
USB: gadget: f_audio: Fix invalid dereference of initdata
author
Martin Jackson
<mjackson220.list@gmail.com>
Tue, 17 May 2011 09:02:06 +0000
(11:02 +0200)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 17 May 2011 18:20:24 +0000
(11:20 -0700)
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>
drivers/usb/gadget/f_audio.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/gadget/f_audio.c
b/drivers/usb/gadget/f_audio.c
index 0111f8a9cf7fcc3f6345a9e6d612ea5683474530..8ee330a2ab58249192bcfe03b137392615400db0 100644
(file)
--- 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,
This page took
0.025318 seconds
and
5
git commands to generate.