]> git.baikalelectronics.ru Git - kernel.git/commit
usbnet: rx_submit() should return an error code.
authorDavid S. Miller <davem@davemloft.net>
Tue, 10 Aug 2010 09:50:55 +0000 (02:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Aug 2010 09:50:55 +0000 (02:50 -0700)
commit882b9f63f0e016c04c932127af94ed2faecb6f44
treead82840c1acd2f8e88d828cf8b8d819f1ca64f6f
parent1786a7c0a62b6c4e83b85cdaded84ce87a8519d8
usbnet: rx_submit() should return an error code.

This patch makes rx_submit() return an error code, and makes some call sites
that care check the return value. This is important because it lets us properly
handle cases where the device isn't ready to handle URB submissions (e.g., when
it is autosuspended under some drivers); previously, we would attempt and fail
to submit URBs and reschedule ourselves to try and fail again. This patch is
against Linus's 2.6 repo commit 1c042701417cee2704bfadfbeeb775e0ff18a629.

Signed-Off-By: Elizabeth Jones <ellyjones@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/usbnet.c