From: Ralf Baechle DL5RB Date: Thu, 19 Jan 2006 17:29:52 +0000 (+0000) Subject: [PATCH] Fix mkiss locking bug X-Git-Tag: v2.6.15.2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bb571727a8e7311a1854f3b770f282d20466d41;p=thirdparty%2Fkernel%2Fstable.git [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 --- diff --git a/drivers/net/hamradio/mkiss.c b/drivers/net/hamradio/mkiss.c index 3e9accf137e71..f4424cf886c56 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);