]> git.baikalelectronics.ru Git - kernel.git/commit
can: dev: can_put_echo_skb(): propagate error in case of errors
authorMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 15 Sep 2020 22:35:01 +0000 (00:35 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 21 Sep 2020 08:13:16 +0000 (10:13 +0200)
commitdf6a286baec9e0877b61ab50e39f4c8af204a1a1
treeaa6aab3cedaf7badf758ff83064715ab4d8f7fc0
parent9ad3ff291a32a064f931b8a35febcc8054d7a771
can: dev: can_put_echo_skb(): propagate error in case of errors

The function can_put_echo_skb() can fail for several reasons. It may
fail due to OOM, but when it fails it's usually due to locking problems
in the driver.

In order to help developing and debugging of new drivers propagate error
value in case of errors.

Link: https://lore.kernel.org/r/20200915223527.1417033-12-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/dev.c
include/linux/can/dev.h