drm/lease: look at ->universal_planes only once
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 5 Nov 2018 10:12:11 +0000 (11:12 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 6 Nov 2018 17:23:31 +0000 (18:23 +0100)
commit968029057192e46dd78e807b81c2aba2d7648c38
tree4684107a3ebcb451fdbaf40c94d658d2f09bbc0b
parent078b7de41249b989a574339078696663e095cf37
drm/lease: look at ->universal_planes only once

It's lockless, and userspace might chance it underneath us. That's not
really a problem, all userspace gets is a slightly dysfunctional
lease with the current code. But this might change, and gcc might
decide to reload a few too many times, and then boom. So better safe
than sorry.

v2: Remove the now unused lessor_priv argument from validate_lease()
(Keith).

v3: Actually add everything ... silly me.

Cc: Keith Packard <keithp@keithp.com>
Cc: Dave Airlie <airlied@gmail.com>
Acked-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181105101211.22737-1-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_lease.c