Commit 199eebba authored by Al Viro's avatar Al Viro Committed by Richard Weinberger

um: deadlock in line_write_interrupt()

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 64405360
...@@ -344,6 +344,7 @@ static irqreturn_t line_write_interrupt(int irq, void *data) ...@@ -344,6 +344,7 @@ static irqreturn_t line_write_interrupt(int irq, void *data)
spin_lock(&line->lock); spin_lock(&line->lock);
err = flush_buffer(line); err = flush_buffer(line);
if (err == 0) { if (err == 0) {
spin_unlock(&line->lock);
return IRQ_NONE; return IRQ_NONE;
} else if (err < 0) { } else if (err < 0) {
line->head = line->buffer; line->head = line->buffer;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment