mdss: mdp: Check for null pointer before access

Check for null pointer before proceeding with
register dump.

Change-Id: Ic7785045676c8d73c065414a5470ea5dfb26936a
Signed-off-by: Animesh Kishore <animeshk@codeaurora.org>
diff --git a/drivers/video/fbdev/msm/mdss_mdp_debug.c b/drivers/video/fbdev/msm/mdss_mdp_debug.c
index bd4ee23..e7bd94a 100644
--- a/drivers/video/fbdev/msm/mdss_mdp_debug.c
+++ b/drivers/video/fbdev/msm/mdss_mdp_debug.c
@@ -1140,7 +1140,7 @@
 	struct mdss_mdp_pipe *pipe;
 	int i, cnt = 0;
 
-	if (!mixer)
+	if (!mixer || !mfd)
 		return;
 
 	seq_printf(s, "\n%s Mixer #%d  res=%dx%d roi[%d, %d, %d, %d] %s\n",