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

Commit 5056d30e authored by Mohammed Javid's avatar Mohammed Javid Committed by Gerrit - the friendly Code Review server
Browse files

msm:ipa: Fix to IPA static analysis constant null deferenced



Adding code changes to reslove IPA static analysis
issue Constant NULL dereferenced by passing
to other function.

Change-Id: I07bd7ac42929576429fc4548cfce7d202d77364f
Acked-by: default avatarPooja Kumari <kumarip@qti.qualcomm.com>
Acked-by: default avatarAshok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: default avatarMohammed Javid <mjavid@codeaurora.org>
parent 3c177cf9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2692,7 +2692,7 @@ int rmnet_ipa_query_tethering_stats(struct wan_ioctl_query_tether_stats *data,
		kfree(req);
		kfree(resp);
		return rc;
	} else if (reset) {
	} else if (data == NULL) {
		kfree(req);
		kfree(resp);
		return 0;
@@ -2823,6 +2823,7 @@ int rmnet_ipa_query_tethering_stats_all(
	return rc;
}


/**
 * ipa_broadcast_quota_reach_ind() - Send Netlink broadcast on Quota
 * @mux_id - The MUX ID on which the quota has been reached
+1 −1
Original line number Diff line number Diff line
@@ -2850,7 +2850,7 @@ int rmnet_ipa3_query_tethering_stats(struct wan_ioctl_query_tether_stats *data,
		kfree(req);
		kfree(resp);
		return rc;
	} else if (reset) {
	} else if (data == NULL) {
		kfree(req);
		kfree(resp);
		return 0;