diff options
author | Shaun Ruffell <sruffell@digium.com> | 2011-08-15 21:55:49 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2011-08-15 21:55:49 +0000 |
commit | 8cc8da74f224d70b67cdb585e452f92c86b9ca94 (patch) | |
tree | c09b62a85b08fd64ac62607f7686a985618319d0 | |
parent | 2492d68a2b5ca158bead70048f3b3e3987e1d825 (diff) |
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@digium.com>
Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=10138
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.5@10139 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r-- | drivers/dahdi/wctc4xxp/base.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dahdi/wctc4xxp/base.c b/drivers/dahdi/wctc4xxp/base.c index d1e3db9..35d24a0 100644 --- a/drivers/dahdi/wctc4xxp/base.c +++ b/drivers/dahdi/wctc4xxp/base.c @@ -3321,6 +3321,7 @@ wctc4xxp_watchdog(unsigned long data) "Board malfunctioning. " \ "Halting operation.\n"); reschedule_timer = 0; + spin_lock(&wc->cmd_list_lock); break; } /* ERROR: We've retried the command and |