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: Pooja Kumari <kumarip@qti.qualcomm.com>
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
This commit is contained in:
Mohammed Javid 2017-06-14 12:40:34 +05:30 committed by syphyr
parent c3cb559284
commit 26955f56d6
1 changed files with 1 additions and 1 deletions

View File

@ -2618,7 +2618,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;