Re: [PATCH] drm: move lease init after validation in drm_lease_create

2017-12-21 Thread Daniel Vetter
On Wed, Dec 20, 2017 at 10:54:24PM -0800, Keith Packard wrote: > 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

Re: [PATCH] drm: move lease init after validation in drm_lease_create

2017-12-21 Thread Daniel Vetter
On Wed, Dec 20, 2017 at 10:54:24PM -0800, Keith Packard wrote: > 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

[PATCH] drm: move lease init after validation in drm_lease_create

2017-12-20 Thread Keith Packard
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

[PATCH] drm: move lease init after validation in drm_lease_create

2017-12-20 Thread Keith Packard
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