]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Treat out-of-range initial width and height as host errors
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 9 Feb 2012 15:56:47 +0000 (16:56 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 13 Feb 2012 12:01:36 +0000 (12:01 +0000)
commitc81b05fa0bd863aa14ad01b9f0a51cdbea4f87e9
tree2055686de4dad4e38d8a74d4bf743e5a3afb71ea
parentdb937659682233c24c7d95fd767a5b584e2f7bcd
drm/vmwgfx: Treat out-of-range initial width and height as host errors

And assign the initial width and height to the minimum in that case.
Strange values (-1) from these registers have been reported by users.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c