]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb3: link fault fixes
authorDivy Le Ray <divy@chelsio.com>
Thu, 28 May 2009 11:23:08 +0000 (11:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 May 2009 08:54:41 +0000 (01:54 -0700)
commit3d7ed1bf69130b640e7a7a3fdae67a8004857583
tree84f18d574d01a0e7222c54f38d8e9cba9ba1c468
parent9ca02befd6d35e91711e3043a5978b5a89b3035e
cxgb3: link fault fixes

Do not call t3_link_fault() under spinlock, as it calls msleep().
Besides, only the access to pi->link_fault needs to be serialized.

Also initialize local variables before checking the link status,
link state fields might otherwise end up containing garbage.

Signed-off-by: Divy Le Ray <divy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb3/cxgb3_main.c
drivers/net/cxgb3/t3_hw.c