wcte43xp: Close potential unbalanced call to enable_irq().
If the memory allocation for the new channel array fails, it would be possible to call enable_irq() without the corresponding call to disable_irq(). Signed-off-by: Shaun Ruffell <sruffell@digium.com>
This commit is contained in:
parent
f6edaf5cea
commit
b6eb7ae6d8
@ -2454,6 +2454,7 @@ t43x_init_one_span(struct t43x *wc, struct t43x_span *ts, enum linemode type)
|
||||
default:
|
||||
spin_unlock_irqrestore(&wc->reglock, flags);
|
||||
res = -EINVAL;
|
||||
enable_irq(wc->xb.pdev->irq);
|
||||
goto error_exit;
|
||||
}
|
||||
|
||||
@ -2476,7 +2477,6 @@ t43x_init_one_span(struct t43x *wc, struct t43x_span *ts, enum linemode type)
|
||||
return 0;
|
||||
|
||||
error_exit:
|
||||
enable_irq(wc->xb.pdev->irq);
|
||||
|
||||
for (x = 0; x < ARRAY_SIZE(chans); ++x) {
|
||||
kfree(chans[x]);
|
||||
|
Loading…
Reference in New Issue
Block a user