From: Markus Armbruster Date: Mon, 26 May 2008 22:31:10 +0000 (+0100) Subject: xen pvfb: Zero unused bytes in events sent to backend X-Git-Tag: v2.6.27-rc1~1106^2~251^24~35 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f4ad1ebd7a0fae2782ef9f76c0b94b536742c3e8;p=linux-2.6-omap-h63xx.git xen pvfb: Zero unused bytes in events sent to backend 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 Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Thomas Gleixner --- diff --git a/drivers/video/xen-fbfront.c b/drivers/video/xen-fbfront.c index 5553e517563..291eef69559 100644 --- a/drivers/video/xen-fbfront.c +++ b/drivers/video/xen-fbfront.c @@ -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;