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> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10138 a0bf4364-ded3-4de4-8d8a-66a801d63aff
This commit is contained in:
parent
e25a65b692
commit
eda8ceea1c
@ -3321,6 +3321,7 @@ wctc4xxp_watchdog(unsigned long data)
|
|||||||
"Board malfunctioning. " \
|
"Board malfunctioning. " \
|
||||||
"Halting operation.\n");
|
"Halting operation.\n");
|
||||||
reschedule_timer = 0;
|
reschedule_timer = 0;
|
||||||
|
spin_lock(&wc->cmd_list_lock);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/* ERROR: We've retried the command and
|
/* ERROR: We've retried the command and
|
||||||
|
Loading…
Reference in New Issue
Block a user