Explorar el Código

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 hace 4 años
padre
commit
d0267842f1
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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;
 		}
 	}