]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
xen pvfb: Zero unused bytes in events sent to backend
authorMarkus Armbruster <armbru@redhat.com>
Mon, 26 May 2008 22:31:10 +0000 (23:31 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 27 May 2008 08:11:36 +0000 (10:11 +0200)
This isn't a security flaw (the backend can see all our memory
anyway).  But it's the right thing to do all the same.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/video/xen-fbfront.c

index 5553e517563e478eb070ac439fb954f244d874b6..291eef6955947cd4876b0b815e509a796f4175e5 100644 (file)
@@ -61,6 +61,7 @@ static void xenfb_do_update(struct xenfb_info *info,
        union xenfb_out_event event;
        u32 prod;
 
+       memset(&event, 0, sizeof(event));
        event.type = XENFB_TYPE_UPDATE;
        event.update.x = x;
        event.update.y = y;