netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] NET: slip, fix ldisc->open retval
@ 2011-05-06 16:23 Matvejchikov Ilya
  2011-05-08 17:37 ` Oliver Hartkopp
  2011-05-09 18:53 ` David Miller
  0 siblings, 2 replies; 4+ messages in thread
From: Matvejchikov Ilya @ 2011-05-06 16:23 UTC (permalink / raw)
  To: netdev

TTY layer expects 0 if the ldisc->open operation succeeded.

Signed-off-by : Matvejchikov Ilya <matvejchikov@gmail.com>
---
 drivers/net/slip.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/net/slip.c b/drivers/net/slip.c
index 86cbb9e..8ec1a9a 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);
-- 
1.7.5.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-05-09 18:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-06 16:23 [PATCH] NET: slip, fix ldisc->open retval Matvejchikov Ilya
2011-05-08 17:37 ` Oliver Hartkopp
2011-05-08 18:25   ` Alan Cox
2011-05-09 18:53 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).