aboutsummaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-11-23 07:22:28 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-11-23 07:22:28 +0000
commit8ed87184f7290c89caab0a6844ce380563e0151f (patch)
tree9c8c83d296993ac8e3379b9b266909afa85e4a63 /extras
parent375f53964b1dc6ea8ea6d7057f77b3a43c4c7eca (diff)
downloadxen-8ed87184f7290c89caab0a6844ce380563e0151f.tar.gz
xen-8ed87184f7290c89caab0a6844ce380563e0151f.tar.bz2
xen-8ed87184f7290c89caab0a6844ce380563e0151f.zip
minios: Fix fb/kbd initialization
When allocating kbdfront and fbfront structures, we should zero them since we do not initialize all fields. Signed-Off-By: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'extras')
-rw-r--r--extras/mini-os/fbfront.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/extras/mini-os/fbfront.c b/extras/mini-os/fbfront.c
index d06b5351ab..0d61ec3fe6 100644
--- a/extras/mini-os/fbfront.c
+++ b/extras/mini-os/fbfront.c
@@ -80,6 +80,7 @@ struct kbdfront_dev *init_kbdfront(char *_nodename, int abs_pointer)
printk("******************* KBDFRONT for %s **********\n\n\n", nodename);
dev = malloc(sizeof(*dev));
+ memset(dev, 0, sizeof(*dev));
dev->nodename = strdup(nodename);
#ifdef HAVE_LIBC
dev->fd = -1;
@@ -403,6 +404,7 @@ struct fbfront_dev *init_fbfront(char *_nodename, unsigned long *mfns, int width
printk("******************* FBFRONT for %s **********\n\n\n", nodename);
dev = malloc(sizeof(*dev));
+ memset(dev, 0, sizeof(*dev));
dev->nodename = strdup(nodename);
#ifdef HAVE_LIBC
dev->fd = -1;