Commit f4ad1ebd authored by Markus Armbruster's avatar Markus Armbruster Committed by Thomas Gleixner

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: default avatarMarkus Armbruster <armbru@redhat.com>
Signed-off-by: default avatarJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 1e892c95
...@@ -61,6 +61,7 @@ static void xenfb_do_update(struct xenfb_info *info, ...@@ -61,6 +61,7 @@ static void xenfb_do_update(struct xenfb_info *info,
union xenfb_out_event event; union xenfb_out_event event;
u32 prod; u32 prod;
memset(&event, 0, sizeof(event));
event.type = XENFB_TYPE_UPDATE; event.type = XENFB_TYPE_UPDATE;
event.update.x = x; event.update.x = x;
event.update.y = y; event.update.y = y;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment