[dahdi-commits] sruffell: branch linux/2.5 r10139 - /linux/branches/2.5/drivers/dahdi/wctc4xxp/
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Mon Aug 15 16:55:52 CDT 2011
Author: sruffell
Date: Mon Aug 15 16:55:49 2011
New Revision: 10139
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10139
Log:
wctc4xxp: Fix lock imbalance in wctc4xxp_watchdog.
r10082 "wctc4xxp: Cleanup in-flight commands when halting due to
hardware error." introduced a lock imblance on the error path where the
cmd_list_lock would be unlocked twice when the board is halted due to a
hardware error. Thanks sparse.
Signed-off-by: Shaun Ruffell <sruffell at digium.com>
Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=10138
Modified:
linux/branches/2.5/drivers/dahdi/wctc4xxp/base.c
Modified: linux/branches/2.5/drivers/dahdi/wctc4xxp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/branches/2.5/drivers/dahdi/wctc4xxp/base.c?view=diff&rev=10139&r1=10138&r2=10139
==============================================================================
--- linux/branches/2.5/drivers/dahdi/wctc4xxp/base.c (original)
+++ linux/branches/2.5/drivers/dahdi/wctc4xxp/base.c Mon Aug 15 16:55:49 2011
@@ -3321,6 +3321,7 @@
"Board malfunctioning. " \
"Halting operation.\n");
reschedule_timer = 0;
+ spin_lock(&wc->cmd_list_lock);
break;
}
/* ERROR: We've retried the command and
More information about the dahdi-commits
mailing list