msm: Check for NULL buffers when freeing

When attempting to unmap a buffer, check if the buffer
is an ERR_PTR or NULL.

Change-Id: I6ab7751f3ba1918360d73892606e24d5d7fedcfd
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
1 file changed