mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 14:43:27 -04:00
USB: usbfs: struct async is a fixed size structure
The ISO descriptors are allocated separately in proc_submiturb for a fetch from user mode, then tucked at the end of URB. This seems like a dead code. Signed-off-by: Pete Zaitcev <zaitcev@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
79592b722e
commit
dd95b81411
1 changed files with 2 additions and 2 deletions
|
|
@ -210,9 +210,9 @@ err:
|
|||
|
||||
static struct async *alloc_async(unsigned int numisoframes)
|
||||
{
|
||||
unsigned int assize = sizeof(struct async) + numisoframes * sizeof(struct usb_iso_packet_descriptor);
|
||||
struct async *as = kzalloc(assize, GFP_KERNEL);
|
||||
struct async *as;
|
||||
|
||||
as = kzalloc(sizeof(struct async), GFP_KERNEL);
|
||||
if (!as)
|
||||
return NULL;
|
||||
as->urb = usb_alloc_urb(numisoframes, GFP_KERNEL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue