Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fdd8f353 authored by Aparna Annapragada's avatar Aparna Annapragada Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa3: Adding check for odl stats



Adding Null check while getting odl stats

change-Id: Ic1692cc4b1a1d3c8b559b20fbb2e1371e0b9f9b2
Signed-off-by: default avatarAparna Annapragada <quic_aannapra@quicinc.com>
parent f0f97b40
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1398,6 +1398,11 @@ static ssize_t ipa3_read_odlstats(struct file *file, char __user *ubuf,
	int nbytes;
	int cnt = 0;

	if (!ipa3_odl_ctx) {
                IPADBG("ODL stats not supported\n");
                return 0;
	}

	nbytes = scnprintf(dbg_buff, IPA_MAX_MSG_LEN,
			"ODL received pkt =%u\n"
			"ODL processed pkt to DIAG=%u\n"