Staging: hv: netvsc: Fix a bug in accounting transmit slots
authorK. Y. Srinivasan <[email protected]>
Thu, 16 Jun 2011 20:16:37 +0000 (13:16 -0700)
committerGreg Kroah-Hartman <[email protected]>
Tue, 5 Jul 2011 15:59:24 +0000 (08:59 -0700)
commit9079ce691255792009c446d8c3382507b8d38635
tree3ec0e5cf6576f0f548d95b2ad0d44a153d7da831
parent46d2eb6d82ef44be58ae192c35e8cd52485f02eb
Staging: hv: netvsc: Fix a bug in accounting transmit slots

The transmit slots were manipulated without proper locking. Fix this bug by
making the variable tracking the transmit slots atomic.

This patch should be ported to prior stable kernels 2.6.32 and later.

Signed-off-by: K. Y. Srinivasan <[email protected]>
Signed-off-by: Haiyang Zhang <[email protected]>
Signed-off-by: Hank Janssen <[email protected]>
Cc: stable <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/staging/hv/netvsc_drv.c