Skip to content

Commit

Permalink
xen pvfb: Zero unused bytes in events sent to backend
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Markus Armbruster authored and Thomas Gleixner committed May 27, 2008
1 parent 1e892c9 commit f4ad1eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/video/xen-fbfront.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f4ad1eb

Please sign in to comment.