Skip to content

Commit

Permalink
NET: slip, fix ldisc->open retval
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Matvejchikov Ilya authored and David S. Miller committed May 9, 2011
1 parent 6709d95 commit 057bef9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/slip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 057bef9

Please sign in to comment.