p54pci: fix bugs in p54p_check_tx_ring
commit7525b22412ed31cdd781f8e4a9fbf28decd2994a
authorHans de Goede <hdegoede@redhat.com>
Thu, 22 Apr 2010 17:52:16 +0000 (22 19:52 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 12 May 2010 22:02:44 +0000 (12 15:02 -0700)
tree954c42e373e4d3a308c31c7bcd873db06e1ebede
parent523bdd72c535f23103b6cc5d410ffa057af2c7f7
p54pci: fix bugs in p54p_check_tx_ring

commit 0250ececdf6813457c98719e2d33b3684881fde0 upstream.

Hans de Goede identified a bug in p54p_check_tx_ring:

there are two ring indices. 1 => tx data and 3 => tx management.
But the old code had a constant "1" and this resulted in spurious
dma unmapping failures.

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=583623
Bug-Identified-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/p54/p54pci.c