Staging: hv: netvsc: Fix a bug in accounting transmit slots
authorK. Y. Srinivasan <kys@microsoft.com>
Thu, 16 Jun 2011 20:16:37 +0000 (13:16 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
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 <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/netvsc_drv.c