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)
commit60e2e8b399ca58bf1954d36aee2cc78f923851c9
treebbdf7ed8a90eaa9030b55c212a820be6d2850dc1
parent1e8d6421cff2c24fe0b345711e7a21af02e8bcf5
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