diff options
author | Markus Armbruster <armbru@redhat.com> | 2008-05-26 18:31:10 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-27 04:11:36 -0400 |
commit | f4ad1ebd7a0fae2782ef9f76c0b94b536742c3e8 (patch) | |
tree | c5c6479559e6bd04116bf4e9e67822415020722d /drivers/video/xen-fbfront.c | |
parent | 1e892c959da42278e60b21f5ecfd6fba0efff313 (diff) |
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 <armbru@redhat.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/video/xen-fbfront.c')
-rw-r--r-- | drivers/video/xen-fbfront.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, | |||
61 | union xenfb_out_event event; | 61 | union xenfb_out_event event; |
62 | u32 prod; | 62 | u32 prod; |
63 | 63 | ||
64 | memset(&event, 0, sizeof(event)); | ||
64 | event.type = XENFB_TYPE_UPDATE; | 65 | event.type = XENFB_TYPE_UPDATE; |
65 | event.update.x = x; | 66 | event.update.x = x; |
66 | event.update.y = y; | 67 | event.update.y = y; |