projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac08c26
)
[PATCH] PROC_NUMBUF is wrong
author
Andrew Morton
<akpm@osdl.org>
Tue, 17 Oct 2006 07:09:41 +0000
(
00:09
-0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Tue, 17 Oct 2006 15:18:43 +0000
(08:18 -0700)
Actually, the decimal representation of a 32-bit signed number can take 12
bytes, including the \0.
And then some code adds a \n as well, so let's give it 13 bytes.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/proc/base.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/proc/base.c
b/fs/proc/base.c
index 82da55b5cffef804f4528bf1bed4d94645f7df2d..26a8f8416b79895af81b2af3a202ddc3dc17b020 100644
(file)
--- a/
fs/proc/base.c
+++ b/
fs/proc/base.c
@@
-86,7
+86,7
@@
/* Worst case buffer size needed for holding an integer. */
-#define PROC_NUMBUF 1
0
+#define PROC_NUMBUF 1
3
struct pid_entry {
int len;