diff options
author | Thomas Hellstrom | 2018-10-04 22:24:41 +0200 |
---|---|---|
committer | Daniel Vetter | 2018-10-05 22:43:41 +0200 |
commit | 40e3defd19cecb308c6e6441853766401864a75b (patch) | |
tree | 2834f7525e90d293a067a8041df821ea0768e8a8 /drivers/gpu/drm/drm_plane_helper.c | |
parent | drm: Unexport primary plane helpers (diff) | |
download | kernel-qcow2-linux-40e3defd19cecb308c6e6441853766401864a75b.tar.gz kernel-qcow2-linux-40e3defd19cecb308c6e6441853766401864a75b.tar.xz kernel-qcow2-linux-40e3defd19cecb308c6e6441853766401864a75b.zip |
drm/vmwgfx: Fix vmw_du_cursor_plane_atomic_check
Use the correct helper and also return early on helper
success rather than on helper failure.
Also explicitly return 0 in the case of no fb.
v2: Check for !fb after updating state->visible (Ville).
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> (v1)
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reported-by: Daniel Vetter <daniel@ffwll.ch>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: VMware Graphics <linux-graphics-maintainer@vmware.com>
Cc: Sinclair Yeh <syeh@vmware.com>
Cc: Thomas Hellstrom <thellstrom@vmware.com>
Acked-by: Thomas Hellstrom <thellstrom@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181004202446.22905-17-daniel.vetter@ffwll.ch
Diffstat (limited to 'drivers/gpu/drm/drm_plane_helper.c')
0 files changed, 0 insertions, 0 deletions