Browse Source

video: driver: add error handling for lend failure

Added error handling for mem_buf_lend failure.

Change-Id: I6ca0a575f8324e3f6eaf1cd114e9bf96608eff3d
Signed-off-by: Govindaraj Rajagopal <[email protected]>
Govindaraj Rajagopal 4 năm trước cách đây
mục cha
commit
d0267842f1
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      driver/vidc/src/msm_vidc_memory.c

+ 1 - 0
driver/vidc/src/msm_vidc_memory.c

@@ -262,6 +262,7 @@ int msm_vidc_memory_alloc(struct msm_vidc_core *core, struct msm_vidc_alloc *mem
 		if (rc) {
 			d_vpr_e("%s: BIN dmabuf %pK LEND failed, rc %d heap %s\n",
 				__func__, mem->dmabuf, rc, heap_name);
+			goto error;
 		}
 	}