]> git.baikalelectronics.ru Git - kernel.git/commit
can: ems_usb: Improved memory handling on ems_usb_start
authorSebastian Haas <dev@sebastianhaas.info>
Thu, 22 Dec 2011 22:58:34 +0000 (23:58 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 3 Feb 2012 00:21:25 +0000 (01:21 +0100)
commitd64ba1968c1c682ac6b724129bf826b17df2cbad
tree002e25689ba79cab63cdcde606c0f7f9e6b1d1da
parent04594ae5b229ac5b2a64fd1eb8f3bc9bd68547b0
can: ems_usb: Improved memory handling on ems_usb_start

Do not return from ems_usb_start if allocation fails. If not all URBs
could be allocated use the one already submitted.

Signed-off-by: Sebastian Haas <dev@sebastianhaas.info>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/ems_usb.c