]> git.baikalelectronics.ru Git - kernel.git/commit
pcnet32: fix reallocation error
authorDon Fry <pcnet32@frontier.com>
Tue, 18 Feb 2014 04:57:46 +0000 (20:57 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Feb 2014 19:58:26 +0000 (14:58 -0500)
commit2cb1e800adaa81f26f052838b80b9f9adc9e2224
treebbdf7ed8a90eaa9030b55c212a820be6d2850dc1
parente2d1ea25b2949d1e5de43e04d6f4b472171df6c2
pcnet32: fix reallocation error

pcnet32_realloc_rx_ring() only worked on the first log2 number of
entries in the receive ring instead of the all the entries.
Replaced "1 << size" with more descriptive variable.
This is my original bug from 2006.  Found while testing another problem.
Tested on 79C972 and 79C976.

Signed-off-by: Don Fry <pcnet32@frontier.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/pcnet32.c