]> git.itanic.dy.fi Git - linux-stable/commit
USB: uss720 fixup refcount position
authorPeter Holik <peter@holik.at>
Fri, 18 Mar 2011 17:47:44 +0000 (18:47 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 28 Mar 2011 14:31:22 +0000 (07:31 -0700)
commita390e88f47af360091497d4c8e67420e04d54fdb
treed51a749c0735bc42f728f6a823e3cb04409a3847
parent25f80165d756b99ff6b707c8509f340f725e533d
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>
drivers/usb/misc/uss720.c