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:
c4ebd92
)
Char: vt, use kzalloc
author
Jiri Slaby
<jirislaby@gmail.com>
Tue, 17 Jul 2007 11:05:21 +0000
(
04:05
-0700)
committer
Linus Torvalds
<torvalds@woody.linux-foundation.org>
Tue, 17 Jul 2007 17:23:10 +0000
(10:23 -0700)
vt, use kzalloc
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/vt.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/vt.c
b/drivers/char/vt.c
index 6650ae1c088f05d132325c1f64cffa7a255f4851..5db295d7a879d378803daae3e148dec5aa8a7396 100644
(file)
--- a/
drivers/char/vt.c
+++ b/
drivers/char/vt.c
@@
-729,10
+729,9
@@
int vc_allocate(unsigned int currcons) /* return 0 on success */
/* although the numbers above are not valid since long ago, the
point is still up-to-date and the comment still has its value
even if only as a historical artifact. --mj, July 1998 */
- vc = k
m
alloc(sizeof(struct vc_data), GFP_KERNEL);
+ vc = k
z
alloc(sizeof(struct vc_data), GFP_KERNEL);
if (!vc)
return -ENOMEM;
- memset(vc, 0, sizeof(*vc));
vc_cons[currcons].d = vc;
INIT_WORK(&vc_cons[currcons].SAK_work, vc_SAK);
visual_init(vc, currcons, 1);