]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[PATCH] Fix mkiss locking bug
authorRalf Baechle DL5RB <ralf@linux-mips.org>
Thu, 19 Jan 2006 17:29:52 +0000 (17:29 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 31 Jan 2006 06:13:18 +0000 (22:13 -0800)
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 <ralf@linux-mips.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/hamradio/mkiss.c

index 3e9accf137e717ac47fe209cfc3621e7bf32960c..f4424cf886c563a3a5c4955336f7c3c2c8f52f04 100644 (file)
@@ -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);