HiSax: fix error checking for hisax_register()]
This patch (as875) adds error-checking to the callers of hisax_register(). It also changes an error pathway in that routine, making it return an error code rather than 0. This fixes Bugzilla #7960. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Acked-by: Karsten Keil <kkeil@suse.de> Cc: Martin Bachem <info@colognechip.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
9d9a2000e6
commit
ae2d990eed
@@ -407,7 +407,6 @@ fill_isoc_urb(struct urb *urb, struct usb_device *dev,
|
||||
{
|
||||
int k;
|
||||
|
||||
spin_lock_init(&urb->lock);
|
||||
urb->dev=dev;
|
||||
urb->pipe=pipe;
|
||||
urb->interval = 1;
|
||||
|
Reference in New Issue
Block a user