]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
bnx2x: fix occasional statistics off-by-4GB error
authorMaciej Żenczykowski <maze@google.com>
Fri, 15 Mar 2013 11:56:17 +0000 (11:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Mar 2013 17:12:20 +0000 (13:12 -0400)
commitb009aac12cd0fe34293c68af8ac48b85be3bd858
treed046165ae2dc10761c50dcb81de41e4a1b1ab181
parent46aa92d1ba162b4b3d6b7102440e459d4e4ee255
bnx2x: fix occasional statistics off-by-4GB error

The UPDATE_QSTAT function introduced on February 15, 2012
in commit 1355b704b9ba "bnx2x: consistent statistics after
internal driver reload" incorrectly fails to handle overflow
during addition of the lower 32-bit field of a stat.

This bug is present since 3.4-rc1 and should thus be considered
a candidate for stable 3.4+ releases.

Google-Bug-Id: 8374428
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Cc: Mintz Yuval <yuvalmin@broadcom.com>
Acked-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.h