https://github.com/torvalds/linux
Revision a620a6bc1c94c22d6c312892be1e0ae171523125 authored by Thadeu Lima de Souza Cascardo on 25 November 2014, 16:21:11 UTC, committed by David S. Miller on 25 November 2014, 20:18:45 UTC
If TX channels are set to 4 and RX channels are set to less than 4,
using ethtool -L, the driver will try to initialize more RX channels
than it has allocated, causing an oops.

This fix only initializes the RX ring if it has been allocated.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent c3658e8
History
Tip revision: a620a6bc1c94c22d6c312892be1e0ae171523125 authored by Thadeu Lima de Souza Cascardo on 25 November 2014, 16:21:11 UTC
tg3: fix ring init when there are more TX than RX channels
Tip revision: a620a6b
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.7 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 93.8 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 285.3 KB
Makefile -rw-r--r-- 53.2 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top