Re: [PATCH v8 1/2] drm: Unplug drm device when unregistering it

2017-04-26 Thread Sean Paul
On Wed, Apr 26, 2017 at 10:43:31PM +0300, Ville Syrjälä wrote: > On Wed, Apr 12, 2017 at 10:55:29AM +0800, Jeffy Chen wrote: > > After unbinding drm, the user space may still owns the drm dev fd, and > > may still be able to call drm ioctl. > > > > We're using an unplugged state to prevent somethi

Re: [PATCH v8 1/2] drm: Unplug drm device when unregistering it

2017-04-26 Thread Ville Syrjälä
On Wed, Apr 12, 2017 at 10:55:29AM +0800, Jeffy Chen wrote: > After unbinding drm, the user space may still owns the drm dev fd, and > may still be able to call drm ioctl. > > We're using an unplugged state to prevent something like that, so let's > reuse it here. > > Also drop drm_unplug_dev, be

[PATCH v8 1/2] drm: Unplug drm device when unregistering it

2017-04-12 Thread Jeffy Chen
After unbinding drm, the user space may still owns the drm dev fd, and may still be able to call drm ioctl. We're using an unplugged state to prevent something like that, so let's reuse it here. Also drop drm_unplug_dev, because it would be unused after other changes. Signed-off-by: Jeffy Chen