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)
commit2ee6850ca0cac95101d2a36c8b186b40d4fc7311
tree002e25689ba79cab63cdcde606c0f7f9e6b1d1da
parent9a12349663061d25b49e6542d005fa7193a2cb44
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