|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] serial.c:
ChangeSet 1.1725, 2005/06/16 02:47:29+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx
serial.c:
Fix serial_getc locking.
serial.c | 4 ++++
1 files changed, 4 insertions(+)
diff -Nru a/xen/drivers/char/serial.c b/xen/drivers/char/serial.c
--- a/xen/drivers/char/serial.c 2005-06-15 22:02:57 -04:00
+++ b/xen/drivers/char/serial.c 2005-06-15 22:02:57 -04:00
@@ -176,11 +176,15 @@
if ( port->rxbufp != port->rxbufc )
{
c = port->rxbuf[MASK_SERIAL_RXBUF_IDX(port->rxbufc++)];
+ spin_unlock_irqrestore(&port->lock, flags);
break;
}
if ( port->driver->getc(port, &c) )
+ {
+ spin_unlock_irqrestore(&port->lock, flags);
break;
+ }
spin_unlock_irqrestore(&port->lock, flags);
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] serial.c:,
BitKeeper Bot <=
|
|
|
|
|