msm: ipa5: avoid NULL access in qmi_send_req_wait

Avoiding NULL ptr access in ipa3_qmi_send_req_wait function.

Change-Id: I24e9650acfc210868a759a4d964023eebfc9d2d2
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
Tento commit je obsažen v:
Michael Adisumarta
2021-04-13 19:34:58 -07:00
rodič 6342a2adc8
revize 769eda8373

Zobrazit soubor

@@ -473,6 +473,8 @@ static int ipa3_qmi_send_req_wait(struct qmi_handle *client_handle,
struct qmi_txn txn;
int ret;
if (!client_handle)
return -EINVAL;
ret = qmi_txn_init(client_handle, &txn, resp_desc->ei_array, resp);
if (ret < 0) {