bitkeeper revision 1.1713.1.12 (42b0da31QIvTtfE2iHo4yER4A1GFIw)

serial.c:
  Fix serial_getc locking.
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2005-06-16 01:47:29 +00:00
1 parent c39f4a5931
commit 7752c1a036
1 file changed
+4
+4
View File
@@ -176,11 +176,15 @@ char serial_getc(int handle)
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);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.