mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
NET: slip, fix ldisc->open retval
TTY layer expects 0 if the ldisc->open operation succeeded. Signed-off-by : Matvejchikov Ilya <[email protected]> Acked-by: Oliver Hartkopp <[email protected]> Acked-by: Alan Cox <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
6709d9521d
commit
057bef9388
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue