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: firefly_0821_release~19697^2~253^24~35 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f4ad1ebd7a0fae2782ef9f76c0b94b536742c3e8;p=firefly-linux-kernel-4.4.55.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 5553e517563e..291eef695594 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;