• Alan Stern's avatar
    USB: option: fix usage of urb->status abuse · 59c2afa0
    Alan Stern authored
    Might fix bug 8561
    
    On Mon, 4 Jun 2007, Paulo Pereira wrote:
    
    > The patch that you send is not resolving the problem... :(
    > I stil have Kernel panic after 45/60 min of work with Ktorrent/Amule...
    >
    > The Drump is:
    >
    > Call Trace:
    > [<c055fb36>] usb_hcd_submit+0xb1/0x763
    > [<f9276488>] ipt_do_table+0x2c7/0x2ef [ip_tables]
    > [<f929a6d7>] nf_ct_deliver_cached_events+0x41/0x96 [nf_conntrak]
    > [<f9288254>] ipv4_confirm+0x36/0c3b [nf_conntrack_ipv4]
    > [<c05ce7c2>] tcp_v4_rcv+0x827/0x899
    > [<c05afcc0>] nf_hook_slow+0x4d/0xb5
    > [<c042826f>] irq_enter+0x19/0x23
    > [<c042826f>] irq_enter+0x19/0x23
    > [<c040794c>] do_IRQ+0xbd/0xd1
    > [<f90893c9>] option_write+0xa7/0xef [option]
    
    Okay, from this it looks like there's a problem in the option.c serial
    driver.  Glancing at the code, it's obvious why: The thing totally
    abuses the USB API.
    
    Try applying this patch; it should help.
    
    From: Alan Stern <stern@rowland.harvard.edu>
    Cc: Paulo Pereira <pfmp.404@gmail.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    59c2afa0
option.c 23.2 KB