Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 057bef93 authored by Matvejchikov Ilya's avatar Matvejchikov Ilya Committed by David S. Miller
Browse files

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: default avatarOliver Hartkopp <socketcan@hartkopp.net>
Acked-by: default avatarAlan Cox <alan@linux.intel.com>

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6709d952
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);