Selaa lähdekoodia

video: driver: report system error when packet validation fails

Report system error when packet validation fails to avoid
unpredictable failures.

Change-Id: I196c21aba1d19846fe766585e4955b3aca3fd59e
Signed-off-by: Akshata Sahukar <[email protected]>
Akshata Sahukar 4 vuotta sitten
vanhempi
sitoutus
4a81629d7c
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      driver/vidc/src/venus_hfi_response.c

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

@@ -1655,7 +1655,7 @@ int handle_response(struct msm_vidc_core *core, void *response)
 	rc = validate_hdr_packet(core, hdr, __func__);
 	if (rc) {
 		d_vpr_e("%s: hdr pkt validation failed\n", __func__);
-		return -EINVAL;
+		return handle_system_error(core, NULL);
 	}
 
 	if (!hdr->session_id)