projects
/
unionfs-2.6.38.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87ab8e5
)
powerpc/vio: use strcpy in modalias_show
author
Prarit Bhargava
<prarit@redhat.com>
Thu, 17 Oct 2013 12:00:11 +0000
(08:00 -0400)
committer
Ben Hutchings
<ben@decadent.org.uk>
Fri, 3 Jan 2014 04:33:16 +0000
(
04:33
+0000)
commit
411cabf79e684171669ad29a0628c400b4431e95
upstream.
Commit
e82b89a6f19bae73fb064d1b3dd91fcefbb478f4
used strcat instead of
strcpy which can result in an overflow of newlines on the buffer.
Signed-off-by: Prarit Bhargava
Cc: benh@kernel.crashing.org
Cc: ben@decadent.org.uk
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/powerpc/kernel/vio.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/kernel/vio.c
b/arch/powerpc/kernel/vio.c
index cbff9a460446a0bea3d2d04ddeba12fe03a38d4f..dfb1c1926c3c975c4eed52366087717ae9d63185 100644
(file)
--- a/
arch/powerpc/kernel/vio.c
+++ b/
arch/powerpc/kernel/vio.c
@@
-1352,12
+1352,12
@@
static ssize_t modalias_show(struct device *dev, struct device_attribute *attr,
dn = dev->of_node;
if (!dn) {
- strc
at
(buf, "\n");
+ strc
py
(buf, "\n");
return strlen(buf);
}
cp = of_get_property(dn, "compatible", NULL);
if (!cp) {
- strc
at
(buf, "\n");
+ strc
py
(buf, "\n");
return strlen(buf);
}