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:
Utkarsh Saxena 2017-01-18 16:59:36 +05:30
parent 2326bcf687
commit 82259fbfd6

View file

@ -251,8 +251,9 @@ static long wan_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
break;
}
if (rmnet_ipa_reset_tethering_stats(NULL)) {
IPAWANERR("WAN_IOC_QUERY_TETHER_STATS failed\n");
if (rmnet_ipa_reset_tethering_stats(
(struct wan_ioctl_reset_tether_stats *)param)) {
IPAWANERR("WAN_IOC_RESET_TETHER_STATS failed\n");
retval = -EFAULT;
break;
}