msm: media: Adds error check in memory alloc function
msm: media: Adds error check in memory alloc function

Adds Error check for Zero size.

Change-Id: Ib450c1c8b34436b6a5d1fdc3c14dbb52c9b3f177
Signed-off-by: Praneeth Paladugu <0e3ab3e485f5469ea79d32d8876d1e2069da6bd5@codeaurora.org>

TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas