diff options
author | Julien Ducourthial <jducourt@free.fr> | 2012-10-05 23:29:20 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-13 05:28:14 +0900 |
commit | c90334077ffa833ecf89f1645d21f0b9d5d51553 (patch) | |
tree | 545b4a1d169048528e1bfa9e96993363d152a07a /drivers/hwmon/atxp1.c | |
parent | 768551e1212290b6f662d30a80b4b0dc0889be95 (diff) | |
download | kernel_samsung_smdk4412-c90334077ffa833ecf89f1645d21f0b9d5d51553.zip kernel_samsung_smdk4412-c90334077ffa833ecf89f1645d21f0b9d5d51553.tar.gz kernel_samsung_smdk4412-c90334077ffa833ecf89f1645d21f0b9d5d51553.tar.bz2 |
r8169: fix unsigned int wraparound with TSO
commit 477206a018f902895bfcd069dd820bfe94c187b1 upstream.
The r8169 may get stuck or show bad behaviour after activating TSO :
the net_device is not stopped when it has no more TX descriptors.
This problem comes from TX_BUFS_AVAIL which may reach -1 when all
transmit descriptors are in use. The patch simply tries to keep positive
values.
Tested with 8111d(onboard) on a D510MO, and with 8111e(onboard) on a
Zotac 890GXITX.
Signed-off-by: Julien Ducourthial <jducourt@free.fr>
Acked-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hwmon/atxp1.c')
0 files changed, 0 insertions, 0 deletions