slcan: fix ldisc->open retval
Subsystems (3)
TTY layer expects 0 if the ldisc->open operation succeeded.
Reported-by Matvejchikov Ilya <[email protected]>
Signed-off-by Oliver Hartkopp <[email protected]>
---
drivers/net/can/slcan.c +3 -1
@@ -583,7 +583,9 @@ static int slcan_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_chan: sl->tty =NULL ;
From: Oliver Hartkopp <[email protected]>
Date: Tue, 10 May 2011 08:09:05 +0200
Quoted 4 lines
TTY layer expects 0 if the
ldisc->openoperation succeeded.Reported-by Matvejchikov Ilya <[email protected]>Signed-off-by Oliver Hartkopp <[email protected]>
Applied, thanks.