|
@@ -494,12 +494,11 @@ int con_clear_unimap(struct vc_data *vc, struct unimapinit *ui)
|
|
|
p = (struct uni_pagedir *)*vc->vc_uni_pagedir_loc;
|
|
|
if (p && p->readonly) return -EIO;
|
|
|
if (!p || --p->refcount) {
|
|
|
- q = kmalloc(sizeof(*p), GFP_KERNEL);
|
|
|
+ q = kzalloc(sizeof(*p), GFP_KERNEL);
|
|
|
if (!q) {
|
|
|
if (p) p->refcount++;
|
|
|
return -ENOMEM;
|
|
|
}
|
|
|
- memset(q, 0, sizeof(*q));
|
|
|
q->refcount=1;
|
|
|
*vc->vc_uni_pagedir_loc = (unsigned long)q;
|
|
|
} else {
|