]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/2.6.15.2/fix-mkiss-locking-bug.patch
move 5.10 queue back in place
[thirdparty/kernel/stable-queue.git] / releases / 2.6.15.2 / fix-mkiss-locking-bug.patch
CommitLineData
3a16f0d1
GKH
1From stable-bounces@linux.kernel.org Thu Jan 19 09:30:47 2006
2Date: Thu, 19 Jan 2006 17:29:52 +0000
3From: Ralf Baechle DL5RB <ralf@linux-mips.org>
4To: stable@kernel.org
5Message-ID: <20060119172952.GA15302@linux-mips.org>
6Content-Disposition: inline
7Cc:
8Subject: Fix mkiss locking bug
9
10ax_encaps() forgot to drop the bufferlock at the end of the function.
11Patch is already in 2.6.16-rc1.
12
13Signed-off-by: Ralf Baechle DL5RB <ralf@linux-mips.org>
14Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15
16---
17 drivers/net/hamradio/mkiss.c | 1 +
18 1 file changed, 1 insertion(+)
19
20--- linux-2.6.15.1.orig/drivers/net/hamradio/mkiss.c
21+++ linux-2.6.15.1/drivers/net/hamradio/mkiss.c
22@@ -515,6 +515,7 @@ static void ax_encaps(struct net_device
23 count = kiss_esc(p, (unsigned char *)ax->xbuff, len);
24 }
25 }
26+ spin_unlock_bh(&ax->buflock);
27
28 set_bit(TTY_DO_WRITE_WAKEUP, &ax->tty->flags);
29 actual = ax->tty->driver->write(ax->tty, ax->xbuff, count);