diff options
Diffstat (limited to 'drivers/char/vt.c')
-rw-r--r-- | drivers/char/vt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/vt.c b/drivers/char/vt.c index b49f03375439..fb75da940b59 100644 --- a/drivers/char/vt.c +++ b/drivers/char/vt.c | |||
@@ -737,7 +737,8 @@ int vc_allocate(unsigned int currcons) /* return 0 on success */ | |||
737 | visual_init(vc, currcons, 1); | 737 | visual_init(vc, currcons, 1); |
738 | if (!*vc->vc_uni_pagedir_loc) | 738 | if (!*vc->vc_uni_pagedir_loc) |
739 | con_set_default_unimap(vc); | 739 | con_set_default_unimap(vc); |
740 | vc->vc_screenbuf = kmalloc(vc->vc_screenbuf_size, GFP_KERNEL); | 740 | if (!vc->vc_kmalloced) |
741 | vc->vc_screenbuf = kmalloc(vc->vc_screenbuf_size, GFP_KERNEL); | ||
741 | if (!vc->vc_screenbuf) { | 742 | if (!vc->vc_screenbuf) { |
742 | kfree(vc); | 743 | kfree(vc); |
743 | vc_cons[currcons].d = NULL; | 744 | vc_cons[currcons].d = NULL; |