mirror of
https://github.com/torvalds/linux.git
synced 2024-12-14 07:02:23 +00:00
ce10d7b4e8
The x and y hints receives from the host are unsigned 32 bit integers and they get set to -1 (0xffffffff) when invalid. Before this commit the vboxvideo driver was storing them in an u16 causing the -1 to be truncated to 65535 which, once reported to userspace, was breaking gnome 3.26+ in Wayland mode. This commit stores the host values in 32 bit variables, removing the truncation and checks for -1, replacing it with 0 as -1 is not a valid suggested-offset-property value. Likewise the properties are now initialized to 0 instead of -1, since -1 is not a valid value. This fixes gnome 3.26+ in Wayland mode not working with the vboxvideo driver. Reported-by: Gianfranco Costamagna <locutusofborg@debian.org> Cc: stable@vger.kernel.org Cc: Michael Thayer <michael.thayer@oracle.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
---|---|---|
.. | ||
hgsmi_base.c | ||
hgsmi_ch_setup.h | ||
hgsmi_channels.h | ||
hgsmi_defs.h | ||
Kconfig | ||
Makefile | ||
modesetting.c | ||
TODO | ||
vbox_drv.c | ||
vbox_drv.h | ||
vbox_err.h | ||
vbox_fb.c | ||
vbox_hgsmi.c | ||
vbox_irq.c | ||
vbox_main.c | ||
vbox_mode.c | ||
vbox_prime.c | ||
vbox_ttm.c | ||
vboxvideo_guest.h | ||
vboxvideo_vbe.h | ||
vboxvideo.h | ||
vbva_base.c |