[PATCH 5.19 318/717] drm/bridge: megachips: Fix a null pointer dereference bug