drm/bridge: make drm_panel_bridge_remove more robust
authorbenjamin.gaignard@linaro.org <benjamin.gaignard@linaro.org>
Mon, 2 Oct 2017 09:32:31 +0000 (11:32 +0200)
committerBenjamin Gaignard <benjamin.gaignard@linaro.org>
Tue, 10 Oct 2017 09:32:35 +0000 (11:32 +0200)
commit6b0e284cfa3898109f9f4c9fa6541caa027a3635
tree6a3b36d9b5f1c81e24ac97a11392b13756a3401e
parentf8e0731db4a02c8c5624e1dce6dc983210a51f64
drm/bridge: make drm_panel_bridge_remove more robust

Make sure that bridge parameter is not NULL and can be safely
cast into a panel_bridge structure.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Reviewed-by: Philippe Cornu <philippe.cornu@st.com>
Tested-by: Philippe Cornu <philippe.cornu@st.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1506936755-23625-2-git-send-email-benjamin.gaignard@linaro.org
drivers/gpu/drm/bridge/panel.c