Home
last modified time | relevance | path

Searched hist:d2a48e52541cdf474ef35d51e8d73ded5be33122 (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/gpu/drm/
H A Ddrm_lease.cdiff d2a48e52541cdf474ef35d51e8d73ded5be33122 Thu Dec 21 07:54:24 CET 2017 Keith Packard <keithp@keithp.com> drm: move lease init after validation in drm_lease_create

Patch bd36d3bab2e3d08f80766c86487090dbceed4651 fixed a deadlock in the
failure path of drm_lease_create. This made the partially initialized
lease object visible for a short window of time.

To avoid having the lessee state appear transiently, I've rearranged
the code so that the lessor fields are not filled in until the
parameters are all validated and the function will succeed.

Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20171221065424.1304-1-keithp@keithp.com