aboutsummaryrefslogtreecommitdiffstats
path: root/xen/drivers/video
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2011-10-04 14:17:28 +0200
committerJan Beulich <jbeulich@suse.com>2011-10-04 14:17:28 +0200
commit91f47f155288b0116472a7ce64d8709f144a5357 (patch)
tree761fae4d9a2dbe8bd8de4b9dbace20fcc1d40b74 /xen/drivers/video
parentcef3d6c06771651b20504357379c3ad53d7673cd (diff)
downloadxen-91f47f155288b0116472a7ce64d8709f144a5357.tar.gz
xen-91f47f155288b0116472a7ce64d8709f144a5357.tar.bz2
xen-91f47f155288b0116472a7ce64d8709f144a5357.zip
use xzalloc in driver code
Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/drivers/video')
-rw-r--r--xen/drivers/video/vesa.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/xen/drivers/video/vesa.c b/xen/drivers/video/vesa.c
index fc3ea47013..fadf78b588 100644
--- a/xen/drivers/video/vesa.c
+++ b/xen/drivers/video/vesa.c
@@ -93,11 +93,11 @@ void __init vesa_init(void)
if ( !lbuf )
goto fail;
- text_buf = xmalloc_bytes(text_columns * text_rows);
+ text_buf = xzalloc_bytes(text_columns * text_rows);
if ( !text_buf )
goto fail;
- line_len = xmalloc_array(unsigned int, text_columns);
+ line_len = xzalloc_array(unsigned int, text_columns);
if ( !line_len )
goto fail;
@@ -108,8 +108,6 @@ void __init vesa_init(void)
goto fail;
lfb = memset((void *)IOREMAP_VIRT_START, 0, vram_remap);
- memset(text_buf, 0, text_columns * text_rows);
- memset(line_len, 0, text_columns * sizeof(*line_len));
vga_puts = vesa_redraw_puts;