diff options
author | Markus Armbruster <armbru@redhat.com> | 2008-05-26 22:31:10 (GMT) |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-27 08:11:36 (GMT) |
commit | f4ad1ebd7a0fae2782ef9f76c0b94b536742c3e8 (patch) | |
tree | c5c6479559e6bd04116bf4e9e67822415020722d /drivers/video | |
parent | 1e892c959da42278e60b21f5ecfd6fba0efff313 (diff) | |
download | linux-f4ad1ebd7a0fae2782ef9f76c0b94b536742c3e8.tar.xz |
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')
-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 5553e51..291eef6 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; |