diff options
| author | Marc Kleine-Budde <[email protected]> | 2021-04-01 10:37:31 +0200 |
|---|---|---|
| committer | Marc Kleine-Budde <[email protected]> | 2021-04-07 09:31:28 +0200 |
| commit | 644022b1de9efc901494b8931c78700d49d35d3d (patch) | |
| tree | 811325e66ef0d297d4e28ff831766494fb6e11dd /tools/perf/scripts/python | |
| parent | c8129487441e11617fab9770d9f98d9ae8fc7b3a (diff) | |
can: m_can: m_can_receive_skb(): add missing error handling to can_rx_offload_queue_sorted() call
In commit 1be37d3b0414 ("can: m_can: fix periph RX path: use
rx-offload to ensure skbs are sent from softirq context") the RX path
for peripherals (i.e. SPI based m_can controllers) was converted to
the rx-offload infrastructure. However, the error handling for
can_rx_offload_queue_sorted() was forgotten.
can_rx_offload_queue_sorted() will return with an error if the
internal queue is full.
This patch adds the missing error handling, by increasing the
rx_fifo_errors.
Fixes: 1be37d3b0414 ("can: m_can: fix periph RX path: use rx-offload to ensure skbs are sent from softirq context")
Link: https://lore.kernel.org/r/[email protected]
Reported-by: coverity-bot <[email protected]>
Addresses-Coverity-ID: 1503583 ("Error handling issues")
Reviewed-by: Kees Cook <[email protected]>
Cc: Torin Cooper-Bennun <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions