Re: [PATCH 1/2] drm: sti: Prevent race on fbdev initialization

2017-02-02 Thread Gabriel Krisman Bertazi
Gabriel Krisman Bertazi writes: > Scheduling the output_poll_work before calling bind_all to create the > crtcs can race the fbdev initialization with the components > initialization (i.e. crtc initialization). One side effect is that we > may call drm_fbdev_cma_init with a zeroed num_crtc value

[PATCH 1/2] drm: sti: Prevent race on fbdev initialization

2017-02-01 Thread Gabriel Krisman Bertazi
Scheduling the output_poll_work before calling bind_all to create the crtcs can race the fbdev initialization with the components initialization (i.e. crtc initialization). One side effect is that we may call drm_fbdev_cma_init with a zeroed num_crtc value, crashing the fbdev allocation. I found