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
Makefile -rw-r--r-- 224 bytes
rcu.h -rw-r--r-- 4.5 KB
rcutorture.c -rw-r--r-- 51.2 KB
srcu.c -rw-r--r-- 22.0 KB
tiny.c -rw-r--r-- 10.4 KB
tiny_plugin.h -rw-r--r-- 4.8 KB
tree.c -rw-r--r-- 116.7 KB
tree.h -rw-r--r-- 26.1 KB
tree_plugin.h -rw-r--r-- 93.3 KB
tree_trace.c -rw-r--r-- 12.9 KB
update.c -rw-r--r-- 21.7 KB

back to top