No description
Find a file
Yoshihiro Shimoda 850a971a4e net: ethernet: ravb: exit if re-initialization fails in tx timeout
[ Upstream commit 015c5d5e6a ]

According to the report of [1], this driver is possible to cause
the following error in ravb_tx_timeout_work().

ravb e6800000.ethernet ethernet: failed to switch device to config mode

This error means that the hardware could not change the state
from "Operation" to "Configuration" while some tx and/or rx queue
are operating. After that, ravb_config() in ravb_dmac_init() will fail,
and then any descriptors will be not allocaled anymore so that NULL
pointer dereference happens after that on ravb_start_xmit().

To fix the issue, the ravb_tx_timeout_work() should check
the return values of ravb_stop_dma() and ravb_dmac_init().
If ravb_stop_dma() fails, ravb_tx_timeout_work() re-enables TX and RX
and just exits. If ravb_dmac_init() fails, just exits.

[1]
https://lore.kernel.org/linux-renesas-soc/20200518045452.2390-1-dirk.behme@de.bosch.com/

Reported-by: Dirk Behme <dirk.behme@de.bosch.com>
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Sergei Shtylyov <sergei.shtylyov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-08-05 10:06:52 +02:00
arch parisc: add support for cmpxchg on u8 pointers 2020-08-05 10:06:52 +02:00
block
certs
crypto
Documentation
drivers net: ethernet: ravb: exit if re-initialization fails in tx timeout 2020-08-05 10:06:52 +02:00
firmware
fs xfs: fix missed wakeup on l_flush_wait 2020-08-05 10:06:50 +02:00
include x86, vmlinux.lds: Page-align end of ..page_aligned sections 2020-08-05 10:06:49 +02:00
init
ipc
kernel bpf: Fix map leak in HASH_OF_MAPS map 2020-08-05 10:06:51 +02:00
lib
mm
net mac80211: mesh: Free pending skb when destroying a mpath 2020-08-05 10:06:51 +02:00
samples
scripts
security
sound
tools selftests/net: rxtimestamp: fix clang issues for target arch PowerPC 2020-08-05 10:06:50 +02:00
usr
virt
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README

Linux kernel
============

This file was moved to Documentation/admin-guide/README.rst

Please notice that there are several guides for kernel developers and users.
These guides can be rendered in a number of formats, like HTML and PDF.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.