[PATCH 4 of 5] xen pvfb: Zero unused bytes in events sent to backend

From: Jeremy Fitzhardinge
Date: Fri May 23 2008 - 09:10:47 EST


From: Markus Armbruster <armbru@xxxxxxxxxx>

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@xxxxxxxxxx>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@xxxxxxxxxx>
---
drivers/video/xen-fbfront.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/xen-fbfront.c b/drivers/video/xen-fbfront.c
--- a/drivers/video/xen-fbfront.c
+++ b/drivers/video/xen-fbfront.c
@@ -61,6 +61,7 @@
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;


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/