diff options
author | Matvejchikov Ilya <matvejchikov@gmail.com> | 2011-05-06 08:23:09 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-05-09 20:53:07 +0200 |
commit | 057bef938896e6266ae24ec4266d24792d27c29a (patch) | |
tree | 05632350838694a8a62782e7343bf6c265b91242 /drivers | |
parent | be2net: Fixed bugs related to PVID. (diff) | |
download | linux-057bef938896e6266ae24ec4266d24792d27c29a.tar.xz linux-057bef938896e6266ae24ec4266d24792d27c29a.zip |
NET: slip, fix ldisc->open retval
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>
Diffstat (limited to 'drivers')
-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 86cbb9ea2f26..8ec1a9a0bb9a 100644 --- a/drivers/net/slip.c +++ b/drivers/net/slip.c @@ -853,7 +853,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); |