Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193993
b: refs/heads/master
c: c93f094
h: refs/heads/master
i:
  193991: 65c7b41
v: v3
  • Loading branch information
Alan Cox authored and David S. Miller committed Apr 7, 2010
1 parent c324899 commit 5551276
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 298b9e44be9592e94c0e69a5d3893cd11f5484fa
refs/heads/master: c93f09402106f22601838ee2bb0d02bae934b5e5
4 changes: 4 additions & 0 deletions trunk/drivers/net/caif/caif_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,10 @@ static int ldisc_open(struct tty_struct *tty)
char name[64];
int result;

/* No write no play */
if (tty->ops->write == NULL)
return -EOPNOTSUPP;

sprintf(name, "cf%s", tty->name);
dev = alloc_netdev(sizeof(*ser), name, caifdev_setup);
ser = netdev_priv(dev);
Expand Down

0 comments on commit 5551276

Please sign in to comment.