From 82259fbfd67595f7f99aa9c00cd1641c19e66d96 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Wed, 18 Jan 2017 16:59:36 +0530 Subject: [PATCH] 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 Signed-off-by: Utkarsh Saxena --- drivers/platform/msm/ipa/ipa_v2/rmnet_ipa_fd_ioctl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/platform/msm/ipa/ipa_v2/rmnet_ipa_fd_ioctl.c b/drivers/platform/msm/ipa/ipa_v2/rmnet_ipa_fd_ioctl.c index 64d5c488310b..46bfe021eb4b 100644 --- a/drivers/platform/msm/ipa/ipa_v2/rmnet_ipa_fd_ioctl.c +++ b/drivers/platform/msm/ipa/ipa_v2/rmnet_ipa_fd_ioctl.c @@ -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; }