diff options
Diffstat (limited to 'drivers/tty/vt')
-rw-r--r-- | drivers/tty/vt/consolemap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/tty/vt/consolemap.c b/drivers/tty/vt/consolemap.c index 248381b30722..2978ca596a7f 100644 --- a/drivers/tty/vt/consolemap.c +++ b/drivers/tty/vt/consolemap.c | |||
@@ -194,8 +194,7 @@ static void set_inverse_transl(struct vc_data *conp, struct uni_pagedir *p, int | |||
194 | q = p->inverse_translations[i]; | 194 | q = p->inverse_translations[i]; |
195 | 195 | ||
196 | if (!q) { | 196 | if (!q) { |
197 | q = p->inverse_translations[i] = (unsigned char *) | 197 | q = p->inverse_translations[i] = kmalloc(MAX_GLYPH, GFP_KERNEL); |
198 | kmalloc(MAX_GLYPH, GFP_KERNEL); | ||
199 | if (!q) return; | 198 | if (!q) return; |
200 | } | 199 | } |
201 | memset(q, 0, MAX_GLYPH); | 200 | memset(q, 0, MAX_GLYPH); |