]> git.baikalelectronics.ru Git - kernel.git/commit
korina: fix loop back of receive descriptors
authorPhil Sutter <n0-1@freewrt.org>
Thu, 15 Jan 2009 12:29:55 +0000 (12:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Jan 2009 00:23:00 +0000 (16:23 -0800)
commitbe0de137d08a588c71e67daa72722539a084b266
tree0560c9a31716369e3b32dda6560e98d0a9322bd8
parent225b6fd6e0b24f25f38e55f782e048ea44df6fc0
korina: fix loop back of receive descriptors

After the last loop iteration, i has the value RC32434_NUM_RDS and
therefore leads to an index overflow when used afterwards to address the
last element. This is yet another another bug introduced when rewriting
parts of the driver for upstream preparation, as the original driver
used 'RC32434_NUM_RDS - 1' instead.

Signed-off-by: Phil Sutter <n0-1@freewrt.org>
Acked-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/korina.c