summaryrefslogtreecommitdiff
path: root/drivers/staging/rtl8188eu/core/rtw_recv.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2017-10-12 20:10:25 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-21 10:24:36 +0100
commit19920331c80af2c01dbfe6b7dcd4bdc79a589aac (patch)
tree2e5ccbc844a485dab60c3c59798c18018ebf831a /drivers/staging/rtl8188eu/core/rtw_recv.c
parent8a21d7f17bddbf496a06b4d91a29f2476be6c37a (diff)
staging: vboxvideo: Fix reporting invalid suggested-offset-properties
commit ce10d7b4e8e3574b9616e54a09d64521b9aeb8b6 upstream. 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: Michael Thayer <michael.thayer@oracle.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu/core/rtw_recv.c')
0 files changed, 0 insertions, 0 deletions