Sfoglia il codice sorgente

Merge "video-driver: Add Null Pointer check for response_workq"

qctecmdr 3 anni fa
parent
commit
e115a1410e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      driver/vidc/src/venus_hfi_response.c

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

@@ -1898,7 +1898,7 @@ int cancel_response_work(struct msm_vidc_inst *inst)
 
 int cancel_response_work_sync(struct msm_vidc_inst *inst)
 {
-	if (!inst) {
+	if (!inst || !inst->response_workq) {
 		d_vpr_e("%s: Invalid arguments\n", __func__);
 		return -EINVAL;
 	}