From: Matvejchikov Ilya Date: Fri, 6 May 2011 06:23:09 +0000 (+0000) Subject: NET: slip, fix ldisc->open retval X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=057bef938896e6266ae24ec4266d24792d27c29a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git NET: slip, fix ldisc->open retval TTY layer expects 0 if the ldisc->open operation succeeded. Signed-off-by : Matvejchikov Ilya Acked-by: Oliver Hartkopp Acked-by: Alan Cox Signed-off-by: David S. Miller --- 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);