patch-2.3.18 linux/kernel/printk.c
Next file: linux/kernel/resource.c
Previous file: linux/kernel/dma.c
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
Fri Sep 10 13:15:51 1999
- Orig file:
v2.3.17/linux/kernel/printk.c
- Orig date:
Thu Aug 26 13:05:42 1999
diff -u --recursive --new-file v2.3.17/linux/kernel/printk.c linux/kernel/printk.c
@@ -174,10 +174,10 @@
error = verify_area(VERIFY_WRITE,buf,len);
if (error)
goto out;
- spin_lock_irq(&console_lock);
count = len;
if (count > LOG_BUF_LEN)
count = LOG_BUF_LEN;
+ spin_lock_irq(&console_lock);
if (count > logged_chars)
count = logged_chars;
if (do_clear)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)