aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/atxp1.c
diff options
context:
space:
mode:
authorJulien Ducourthial <jducourt@free.fr>2012-10-05 23:29:20 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-13 05:28:14 +0900
commitc90334077ffa833ecf89f1645d21f0b9d5d51553 (patch)
tree545b4a1d169048528e1bfa9e96993363d152a07a /drivers/hwmon/atxp1.c
parent768551e1212290b6f662d30a80b4b0dc0889be95 (diff)
downloadkernel_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