diff options
author | Matvejchikov Ilya <matvejchikov@gmail.com> | 2011-05-06 10:23:09 +0400 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2012-03-14 18:57:56 +0400 |
commit | c5e69c82362c3200b8ea70a7de8aae3b1d7ccf1d (patch) | |
tree | de2740c34fc48e1b20d3c7eb9046653fb0f89f00 /drivers/net | |
parent | cde9bf1d67a8e386669be15f95ebe9f45257dea6 (diff) | |
download | linux-c5e69c82362c3200b8ea70a7de8aae3b1d7ccf1d.tar.xz |
NET: slip, fix ldisc->open retval
commit 057bef938896e6266ae24ec4266d24792d27c29a upstream.
TTY layer expects 0 if the ldisc->open operation succeeded.
Signed-off-by : Matvejchikov Ilya <matvejchikov@gmail.com>
Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/slip.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/slip.c b/drivers/net/slip.c index 89696156c059..2605f3d1bc49 100644 --- a/drivers/net/slip.c +++ b/drivers/net/slip.c @@ -852,7 +852,9 @@ static int slip_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_bufs: sl_free_bufs(sl); |