msm: ipa: Fix to pass ioctl param to reset_stats
Make change to pass the iotcl param to reset_stats instead of NULL to avoid NULL pointer access. Change-Id: Ie5fe6d3dd530ac2efc0fe670cccd20b9a2fbe968 Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com> Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
This commit is contained in:
parent
2326bcf687
commit
82259fbfd6
1 changed files with 3 additions and 2 deletions
|
@ -251,8 +251,9 @@ static long wan_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rmnet_ipa_reset_tethering_stats(NULL)) {
|
if (rmnet_ipa_reset_tethering_stats(
|
||||||
IPAWANERR("WAN_IOC_QUERY_TETHER_STATS failed\n");
|
(struct wan_ioctl_reset_tether_stats *)param)) {
|
||||||
|
IPAWANERR("WAN_IOC_RESET_TETHER_STATS failed\n");
|
||||||
retval = -EFAULT;
|
retval = -EFAULT;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue