From 1bb571727a8e7311a1854f3b770f282d20466d41 Mon Sep 17 00:00:00 2001 From: Ralf Baechle DL5RB Date: Thu, 19 Jan 2006 17:29:52 +0000 Subject: [PATCH] Fix mkiss locking bug ax_encaps() forgot to drop the bufferlock at the end of the function. Patch is already in 2.6.16-rc1. Signed-off-by: Ralf Baechle DL5RB Signed-off-by: Greg Kroah-Hartman --- drivers/net/hamradio/mkiss.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/hamradio/mkiss.c b/drivers/net/hamradio/mkiss.c index 3e9accf137e..f4424cf886c 100644 --- a/drivers/net/hamradio/mkiss.c +++ b/drivers/net/hamradio/mkiss.c @@ -515,6 +515,7 @@ static void ax_encaps(struct net_device *dev, unsigned char *icp, int len) count = kiss_esc(p, (unsigned char *)ax->xbuff, len); } } + spin_unlock_bh(&ax->buflock); set_bit(TTY_DO_WRITE_WAKEUP, &ax->tty->flags); actual = ax->tty->driver->write(ax->tty, ax->xbuff, count); -- cgit v1.2.3-18-g5258