]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit80a71815d8cd1be6481ad16fad3167f095045a06
treeaa6aab3cedaf7badf758ff83064715ab4d8f7fc0
parent87245f1f1183083b219eaa72861889dba84d128b
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