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