|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] minios: Fix fb/kbd initialization
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1258960948 0
# Node ID 005bd672d3af540c19e5c6dc9215556953aa8771
# Parent e10d641b413f85c09a360cc24bb78b7e07449d76
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@xxxxxxxxxxxx>
---
extras/mini-os/fbfront.c | 2 ++
1 files changed, 2 insertions(+)
diff -r e10d641b413f -r 005bd672d3af extras/mini-os/fbfront.c
--- a/extras/mini-os/fbfront.c Mon Nov 23 07:21:58 2009 +0000
+++ b/extras/mini-os/fbfront.c Mon Nov 23 07:22:28 2009 +0000
@@ -80,6 +80,7 @@ struct kbdfront_dev *init_kbdfront(char
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 *_
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;
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] minios: Fix fb/kbd initialization,
Xen patchbot-unstable <=
|
|
|
|
|