]> git.baikalelectronics.ru Git - kernel.git/commit
e1000e: fix double release of mutex
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 12 Dec 2008 05:28:11 +0000 (21:28 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Dec 2008 05:28:11 +0000 (21:28 -0800)
commitc5cd6b8491604696eed475bb6ce3388e76c6d732
tree97601869ade938f50e11de20cb06cca72b27cb34
parent92783c659ec5e5b61523d6029fc69d01e2d0ab74
e1000e: fix double release of mutex

During a reset, releasing the swflag after it failed to be acquired would
cause a double unlock of the mutex.  Instead, test whether acquisition of
the swflag was successful and if not, do not release the swflag.  The reset
must still be done to bring the device to a quiescent state.

This resolves [BUG 12200] BUG: bad unlock balance detected! e1000e
http://bugzilla.kernel.org/show_bug.cgi?id=12200

Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/e1000e/ich8lan.c