git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] introduce and use kzalloc
[pandora-kernel.git]
/
kernel
/
params.c
diff --git
a/kernel/params.c
b/kernel/params.c
index
d586c35
..
fbf1732
100644
(file)
--- a/
kernel/params.c
+++ b/
kernel/params.c
@@
-542,8
+542,8
@@
static void __init kernel_param_sysfs_setup(const char *name,
{
struct module_kobject *mk;
{
struct module_kobject *mk;
- mk = k
m
alloc(sizeof(struct module_kobject), GFP_KERNEL);
-
memset(mk, 0, sizeof(struct module_kobject)
);
+ mk = k
z
alloc(sizeof(struct module_kobject), GFP_KERNEL);
+
BUG_ON(!mk
);
mk->mod = THIS_MODULE;
kobj_set_kset_s(mk, module_subsys);
mk->mod = THIS_MODULE;
kobj_set_kset_s(mk, module_subsys);