lkml.org 
[lkml]   [2002]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject+ 1000000000 bug still in 2.4.19-pre10 (proc_misc.c)
The 2.4.19-pre10 patch still contains the following bug:

@@ -279,10 +335,11 @@
);
#if !defined(CONFIG_ARCH_S390)
for (i = 0 ; i < NR_IRQS ; i++)
- len += sprintf(page + len, " %u", kstat_irqs(i));
+ proc_sprintf(page, &off, &len,
+ " %u", kstat_irqs(i) + 1000000000);
#endif


Ben LaHaise confirmed that the "+ 1000000000" part was a brown paper
bag. (The addition of a billion was test code that triggered the bug
which the rest of the proc_misc change fixes.)


Todd

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.115 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site