소스 검색

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 년 전
부모
커밋
d0267842f1
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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;
 		}
 	}