drm/fb-helper: generic: Call drm_client_add() after setup is done
authorNoralf Trønnes <noralf@tronnes.org>
Mon, 1 Apr 2019 14:13:58 +0000 (16:13 +0200)
committerNoralf Trønnes <noralf@tronnes.org>
Wed, 3 Apr 2019 09:11:47 +0000 (11:11 +0200)
commit6e3f17ee73f7e3c2ef0e2c8fd8624b2ece8ef2c9
treeac1f17457078f45852ed2faf9ad8f167417360f4
parentd7f9b83913f12b918906b8c1f4a4b90b5f4347d3
drm/fb-helper: generic: Call drm_client_add() after setup is done

Hotplug can happen while drm_fbdev_generic_setup() is running so move
drm_client_add() call after setup is done to avoid
drm_fbdev_client_hotplug() running in two threads at the same time.

Fixes: 9060d7f49376 ("drm/fb-helper: Finish the generic fbdev emulation")
Cc: stable@vger.kernel.org
Reported-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190401141358.25309-1-noralf@tronnes.org
drivers/gpu/drm/drm_fb_helper.c