Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248670
b: refs/heads/master
c: 0ad7c9a
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Slaby authored and Greg Kroah-Hartman committed Apr 25, 2011
1 parent b201dfc commit a0d890f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7fdc28931176a17ef0bdc5d35742925a155533c4
refs/heads/master: 0ad7c9af3e1cbb97082062266705d6cb5fb207ee
5 changes: 3 additions & 2 deletions trunk/drivers/tty/moxa.c
Original file line number Diff line number Diff line change
Expand Up @@ -1202,14 +1202,15 @@ static int moxa_write(struct tty_struct *tty,
const unsigned char *buf, int count)
{
struct moxa_port *ch = tty->driver_data;
unsigned long flags;
int len;

if (ch == NULL)
return 0;

spin_lock_bh(&moxa_lock);
spin_lock_irqsave(&moxa_lock, flags);
len = MoxaPortWriteData(tty, buf, count);
spin_unlock_bh(&moxa_lock);
spin_unlock_irqrestore(&moxa_lock, flags);

set_bit(LOWWAIT, &ch->statusflags);
return len;
Expand Down

0 comments on commit a0d890f

Please sign in to comment.