[PATCH v2 2/3] drm: simplify authentication management

2015-05-04 Thread David Herrmann
Hi On Mon, May 4, 2015 at 8:33 PM, Chris Wilson wrote: > On Mon, May 04, 2015 at 08:19:33PM +0200, David Herrmann wrote: >> The magic auth tokens we have are a simple map from cyclic IDs to drm_file >> objects. Remove all the old bulk of code and replace it with a simple, >> direct IDR. >> >>

[PATCH v2 2/3] drm: simplify authentication management

2015-05-04 Thread David Herrmann
The magic auth tokens we have are a simple map from cyclic IDs to drm_file objects. Remove all the old bulk of code and replace it with a simple, direct IDR. The previous behavior is kept. Especially calling authmagic multiple times on the same magic results in EINVAL except on the first call.

[PATCH v2 2/3] drm: simplify authentication management

2015-05-04 Thread Chris Wilson
On Mon, May 04, 2015 at 08:19:33PM +0200, David Herrmann wrote: > The magic auth tokens we have are a simple map from cyclic IDs to drm_file > objects. Remove all the old bulk of code and replace it with a simple, > direct IDR. > > The previous behavior is kept. Especially calling authmagic