msm: vidc: Check for sanity of size while mapping buffers

Fail map if dmabuffer size doesn't match expected buffersize.
This is to avoid faults in firmware while accessing buffers.

Change-Id: Ie41a93979696299a8b2fc3c548cb6574a21313db
Signed-off-by: Abdulla Anam <abdullahanam@codeaurora.org>
Signed-off-by: Shivendra Kakrania <shiven@codeaurora.org>
2 files changed