Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2971
b: refs/heads/master
c: d9ad7ef
h: refs/heads/master
i:
  2969: 7d93e0e
  2967: 3d18042
v: v3
  • Loading branch information
TINNES Julien RD-MAPS-ISS authored and Linus Torvalds committed Jun 23, 2005
1 parent 53ca0d3 commit 6d04320
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 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: 17abee3d50685b8ef4e38d37abacf8b650a3a387
refs/heads/master: d9ad7ef1979d65a4200847ec91be5b9ad961eba8
18 changes: 14 additions & 4 deletions trunk/drivers/char/amiserial.c
Original file line number Diff line number Diff line change
Expand Up @@ -861,13 +861,18 @@ static void change_speed(struct async_struct *info,

static void rs_put_char(struct tty_struct *tty, unsigned char ch)
{
struct async_struct *info = (struct async_struct *)tty->driver_data;
struct async_struct *info;
unsigned long flags;

if (!tty)
return;

info = tty->driver_data;

if (serial_paranoia_check(info, tty->name, "rs_put_char"))
return;

if (!tty || !info->xmit.buf)
if (!info->xmit.buf)
return;

local_irq_save(flags);
Expand Down Expand Up @@ -910,13 +915,18 @@ static void rs_flush_chars(struct tty_struct *tty)
static int rs_write(struct tty_struct * tty, const unsigned char *buf, int count)
{
int c, ret = 0;
struct async_struct *info = (struct async_struct *)tty->driver_data;
struct async_struct *info;
unsigned long flags;

if (!tty)
return 0;

info = tty->driver_data;

if (serial_paranoia_check(info, tty->name, "rs_write"))
return 0;

if (!tty || !info->xmit.buf || !tmp_buf)
if (!info->xmit.buf || !tmp_buf)
return 0;

local_save_flags(flags);
Expand Down

0 comments on commit 6d04320

Please sign in to comment.