]> err.no Git - linux-2.6/blobdiff - drivers/char/stallion.c
drm/r500: add support for AGP based cards.
[linux-2.6] / drivers / char / stallion.c
index 983244ab1362ce1252a38c0f40b04df967bb26b7..d17be10c5d2108f436a1479f15eb1f83373d82f4 100644 (file)
@@ -875,6 +875,7 @@ static void stl_waituntilsent(struct tty_struct *tty, int timeout)
                timeout = HZ;
        tend = jiffies + timeout;
 
+       lock_kernel();
        while (stl_datastate(portp)) {
                if (signal_pending(current))
                        break;
@@ -882,6 +883,7 @@ static void stl_waituntilsent(struct tty_struct *tty, int timeout)
                if (time_after_eq(jiffies, tend))
                        break;
        }
+       unlock_kernel();
 }
 
 /*****************************************************************************/