drm/tilcdc: fix wrong error handling
When 'component_bind_all' fails it should not try to unbind components in the error handling. This will produce a null pointer kernel panic when no component exist. This patch changes the order of the error handling. Now, it will only unbind components if the are bound. Otherwise, the module will jump to an error label below. Signed-off-by: NDaniel Schultz <d.schultz@phytec.de> Reviewed-by: NSean Paul <seanpaul@chromium.org> Signed-off-by: NJyri Sarha <jsarha@ti.com>
Showing
想要评论请 注册 或 登录