summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorMatvejchikov Ilya <matvejchikov@gmail.com>2011-05-06 06:23:09 +0000
committerGreg Kroah-Hartman <gregkh@suse.de>2011-05-23 11:20:16 -0700
commit23cd96edb58a1b64a97017c1b8ed70c1228a4a25 (patch)
treedf3e6bd21bce04a987ded16b720e600d5dc34a1e /drivers/net
parent47d36733796923a94ed3559db18a824c998f3b5f (diff)
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: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/slip.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/slip.c b/drivers/net/slip.c
index fe3cebb984de..9a3088faa47b 100644
--- a/drivers/net/slip.c
+++ b/drivers/net/slip.c
@@ -850,7 +850,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);