]> git.baikalelectronics.ru Git - kernel.git/commit
netxen: fix race in tx ring acccess
authorDhananjay Phadke <dhananjay@netxen.com>
Tue, 5 May 2009 19:05:06 +0000 (19:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 May 2009 22:33:35 +0000 (15:33 -0700)
commitffc072dd9ac3355d5ddb65e0c803a44608dd111d
tree074c3dce3fe61b54aec6c7d8a829c4fa7592a6c0
parentca28c6782719da761de6c22ee02d209c90062a9f
netxen: fix race in tx ring acccess

Fix the distance check between tx ring producer and consumer that
could lead to tx ring wrap around.

Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netxen/netxen_nic_hw.c
drivers/net/netxen/netxen_nic_init.c
drivers/net/netxen/netxen_nic_main.c