When using dmabuf container, put_dmabuf() was missed and it is
memory leak. So this adds put_dmabuf().
Change-Id: Ib0cf13f99409cebff5d5ca9af6a3c424776061ba
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
count = s5p_mfc_bufcon_get_daddr(ctx, buf, dmabuf, i);
if (count != ctx->num_bufs_in_vb) {
+ s5p_mfc_mem_put_dmabuf(dmabuf);
mfc_err_ctx("invalid buffer count %d != num_bufs_in_vb %d\n",
count, ctx->num_bufs_in_vb);
return -EFAULT;
} else {
dma_addr_t start_raw;
+ s5p_mfc_mem_put_dmabuf(dmabuf);
start_raw = s5p_mfc_mem_get_daddr_vb(vb, 0);
if (start_raw == 0) {
mfc_err_ctx("Plane mem not allocated.\n");