From: Thadeu Lima de Souza Cascardo Date: Tue, 25 Nov 2014 16:21:11 +0000 (-0200) Subject: tg3: fix ring init when there are more TX than RX channels X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~65^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a620a6bc1c94c22d6c312892be1e0ae171523125;p=pandora-kernel.git tg3: fix ring init when there are more TX than RX channels 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed