projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46b60fa
)
Blackfin: fix memset in smp_send_reschedule() and -stop()
author
Roel Kluin
<roel.kluin@gmail.com>
Sat, 21 Nov 2009 18:35:58 +0000
(19:35 +0100)
committer
Mike Frysinger
<vapier@gentoo.org>
Wed, 25 Nov 2009 07:35:45 +0000
(
02:35
-0500)
To set zeroes the sizeof the struct should be used rather
than sizeof the pointer, kzalloc does that.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/mach-common/smp.c
patch
|
blob
|
history
diff --git
a/arch/blackfin/mach-common/smp.c
b/arch/blackfin/mach-common/smp.c
index d98585f3237d5114f9d054e386c64898a13ce08a..d92b168c83281cdd89326875e80ca75afe890c80 100644
(file)
--- a/
arch/blackfin/mach-common/smp.c
+++ b/
arch/blackfin/mach-common/smp.c
@@
-276,10
+276,9
@@
void smp_send_reschedule(int cpu)
if (cpu_is_offline(cpu))
return;
- msg = k
m
alloc(sizeof(*msg), GFP_ATOMIC);
+ msg = k
z
alloc(sizeof(*msg), GFP_ATOMIC);
if (!msg)
return;
- memset(msg, 0, sizeof(msg));
INIT_LIST_HEAD(&msg->list);
msg->type = BFIN_IPI_RESCHEDULE;
@@
-305,10
+304,9
@@
void smp_send_stop(void)
if (cpus_empty(callmap))
return;
- msg = k
m
alloc(sizeof(*msg), GFP_ATOMIC);
+ msg = k
z
alloc(sizeof(*msg), GFP_ATOMIC);
if (!msg)
return;
- memset(msg, 0, sizeof(msg));
INIT_LIST_HEAD(&msg->list);
msg->type = BFIN_IPI_CPU_STOP;