瀏覽代碼

video: driver: Check failures during session close

Check if cmd queue write failed and return the error code
during session close.

Change-Id: Iaa4579cdb8ad5f622623c957a781ab0a9104153d
Signed-off-by: Mihir Ganu <[email protected]>
Mihir Ganu 4 年之前
父節點
當前提交
18e731edaa
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      driver/vidc/src/venus_hfi.c

+ 1 - 1
driver/vidc/src/venus_hfi.c

@@ -3134,7 +3134,7 @@ int venus_hfi_session_close(struct msm_vidc_inst *inst)
 				NULL,
 				0);
 	if (!rc)
-		__iface_cmdq_write(inst->core, inst->packet);
+		rc = __iface_cmdq_write(inst->core, inst->packet);
 
 	return rc;
 }