浏览代码

Merge "video: driver: return POLLERR when inst in error state"

qctecmdr 4 年之前
父节点
当前提交
a5cae9054b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      driver/vidc/src/msm_vidc.c

+ 2 - 2
driver/vidc/src/msm_vidc.c

@@ -67,11 +67,11 @@ int msm_vidc_poll(void *instance, struct file *filp,
 
 
 	if (!inst) {
 	if (!inst) {
 		d_vpr_e("%s: invalid params\n", __func__);
 		d_vpr_e("%s: invalid params\n", __func__);
-		return -EINVAL;
+		return POLLERR;
 	}
 	}
 	if (inst->state == MSM_VIDC_ERROR) {
 	if (inst->state == MSM_VIDC_ERROR) {
 		i_vpr_e(inst, "%s: inst in error state\n", __func__);
 		i_vpr_e(inst, "%s: inst in error state\n", __func__);
-		return -EINVAL;
+		return POLLERR;
 	}
 	}
 
 
 	poll_wait(filp, &inst->event_handler.wait, wait);
 	poll_wait(filp, &inst->event_handler.wait, wait);