diff options
Diffstat (limited to 'drivers/usb/serial/omninet.c')
-rw-r--r-- | drivers/usb/serial/omninet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/omninet.c b/drivers/usb/serial/omninet.c index 60f38d5e64f..0a8c1e64b24 100644 --- a/drivers/usb/serial/omninet.c +++ b/drivers/usb/serial/omninet.c | |||
@@ -315,7 +315,7 @@ static int omninet_write_room(struct tty_struct *tty) | |||
315 | int room = 0; /* Default: no room */ | 315 | int room = 0; /* Default: no room */ |
316 | 316 | ||
317 | /* FIXME: no consistent locking for write_urb_busy */ | 317 | /* FIXME: no consistent locking for write_urb_busy */ |
318 | if (wport->write_urb_busy) | 318 | if (!wport->write_urb_busy) |
319 | room = wport->bulk_out_size - OMNINET_HEADERLEN; | 319 | room = wport->bulk_out_size - OMNINET_HEADERLEN; |
320 | 320 | ||
321 | dbg("%s - returns %d", __func__, room); | 321 | dbg("%s - returns %d", __func__, room); |