]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: uss720 fixup refcount position
authorPeter Holik <peter@holik.at>
Fri, 18 Mar 2011 17:47:44 +0000 (18:47 +0100)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 26 Jun 2011 16:47:13 +0000 (12:47 -0400)
commit6ebf5728b9a9ca9f3a7f2ef1aad42ac850785aec
tree953be3e7a3eb7f945d1f5e177c632cd578a0cfd6
parentff0e076b0421ba7b8dba647300c99fd24e823550
USB: uss720 fixup refcount position

commit adaa3c6342b249548ea830fe8e02aa5b45be8688 upstream.

My testprog do a lot of bitbang - after hours i got following warning and my machine lockups:
WARNING: at /build/buildd/linux-2.6.38/lib/kref.c:34
After debugging uss720 driver i discovered that the completion callback was called before
usb_submit_urb returns. The callback frees the request structure that is krefed on return by
usb_submit_urb.

Signed-off-by: Peter Holik <peter@holik.at>
Acked-by: Thomas Sailer <t.sailer@alumni.ethz.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/usb/misc/uss720.c