From: Peter Holik Date: Fri, 18 Mar 2011 17:47:44 +0000 (+0100) Subject: USB: uss720 fixup refcount position X-Git-Tag: v2.6.37.6~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36c1f7510c24cc67efdf245e7d46009df4905dc2;p=pandora-kernel.git 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 Acked-by: Thomas Sailer Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed