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
Kconfig -rw-r--r-- 10.4 KB
Makefile -rw-r--r-- 460 bytes
autosleep.c -rw-r--r-- 2.6 KB
block_io.c -rw-r--r-- 2.4 KB
console.c -rw-r--r-- 3.5 KB
hibernate.c -rw-r--r-- 27.0 KB
main.c -rw-r--r-- 15.2 KB
power.h -rw-r--r-- 8.3 KB
poweroff.c -rw-r--r-- 990 bytes
process.c -rw-r--r-- 6.0 KB
qos.c -rw-r--r-- 17.2 KB
snapshot.c -rw-r--r-- 67.6 KB
suspend.c -rw-r--r-- 12.0 KB
suspend_test.c -rw-r--r-- 5.7 KB
swap.c -rw-r--r-- 35.8 KB
user.c -rw-r--r-- 10.0 KB
wakelock.c -rw-r--r-- 5.5 KB

back to top