OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aae1e74
)
slcan: fix ldisc->open retval
author
Oliver Hartkopp
<socketcan@hartkopp.net>
Tue, 10 May 2011 20:12:30 +0000
(13:12 -0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 10 May 2011 22:04:07 +0000
(15:04 -0700)
TTY layer expects 0 if the ldisc->open operation succeeded.
Reported-by: Matvejchikov Ilya <matvejchikov@gmail.com>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/slcan.c
patch
|
blob
|
history
diff --git
a/drivers/net/can/slcan.c
b/drivers/net/can/slcan.c
index
b423965
..
1b49df6
100644
(file)
--- a/
drivers/net/can/slcan.c
+++ b/
drivers/net/can/slcan.c
@@
-583,7
+583,9
@@
static int slcan_open(struct tty_struct *tty)
/* Done. We have linked the TTY line to a channel. */
rtnl_unlock();
tty->receive_room = 65536; /* We don't flow control */
- return sl->dev->base_addr;
+
+ /* TTY layer expects 0 on success */
+ return 0;
err_free_chan:
sl->tty = NULL;