drm/msm: validate framebuffer before accessing it

Add framebuffer validation checks before accessing it
to get the format information.

Change-Id: Iac43158509b323169c2e7ab47fc9370915354fc6
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
2 files changed