Re: [PATCH] drm: Do not call drm_dev_unregister twice on drm_unplug_dev

2017-05-28 Thread Hans de Goede
On 28-05-17 19:10, Hans de Goede wrote: Since commit a39be606f99d ("drm: Do a full device unregister when unplugging") drm_unplug_dev has been calling drm_dev_unregister followed by a drm_put_dev when open_count reaches 0. This drm_put_dev calls drm_dev_unregister again. Since drm_dev_unregiste

[PATCH] drm: Do not call drm_dev_unregister twice on drm_unplug_dev

2017-05-28 Thread Hans de Goede
Since commit a39be606f99d ("drm: Do a full device unregister when unplugging") drm_unplug_dev has been calling drm_dev_unregister followed by a drm_put_dev when open_count reaches 0. This drm_put_dev calls drm_dev_unregister again. Since drm_dev_unregister is not protected against being called mult