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

Commit cf0b3589 authored by Mohammed Javid's avatar Mohammed Javid
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 24679ce2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2685,7 +2685,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;
+1 −1
Original line number Diff line number Diff line
@@ -2846,7 +2846,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;