Loading drivers/platform/msm/ipa/ipa_v2/rmnet_ipa.c +14 −0 Original line number Diff line number Diff line Loading @@ -2693,6 +2693,9 @@ int rmnet_ipa_set_data_quota(struct wan_ioctl_set_data_quota *data) enum ipa_upstream_type upstream_type; int rc = 0; /* prevent string buffer overflows */ data->interface_name[IFNAMSIZ-1] = '\0'; /* get IPA backhaul type */ upstream_type = find_upstream_type(data->interface_name); Loading Loading @@ -2982,6 +2985,10 @@ int rmnet_ipa_query_tethering_stats(struct wan_ioctl_query_tether_stats *data, enum ipa_upstream_type upstream_type; int rc = 0; /* prevent string buffer overflows */ data->upstreamIface[IFNAMSIZ-1] = '\0'; data->tetherIface[IFNAMSIZ-1] = '\0'; /* get IPA backhaul type */ upstream_type = find_upstream_type(data->upstreamIface); Loading Loading @@ -3016,6 +3023,10 @@ int rmnet_ipa_query_tethering_stats_all( int rc = 0; memset(&tether_stats, 0, sizeof(struct wan_ioctl_query_tether_stats)); /* prevent string buffer overflows */ data->upstreamIface[IFNAMSIZ-1] = '\0'; /* get IPA backhaul type */ upstream_type = find_upstream_type(data->upstreamIface); Loading Loading @@ -3059,6 +3070,9 @@ int rmnet_ipa_reset_tethering_stats(struct wan_ioctl_reset_tether_stats *data) memset(&tether_stats, 0, sizeof(struct wan_ioctl_query_tether_stats)); /* prevent string buffer overflows */ data->upstreamIface[IFNAMSIZ-1] = '\0'; /* get IPA backhaul type */ upstream_type = find_upstream_type(data->upstreamIface); Loading drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c +14 −0 Original line number Diff line number Diff line Loading @@ -2984,6 +2984,9 @@ int rmnet_ipa3_set_data_quota(struct wan_ioctl_set_data_quota *data) enum ipa_upstream_type upstream_type; int rc = 0; /* prevent string buffer overflows */ data->interface_name[IFNAMSIZ-1] = '\0'; /* get IPA backhaul type */ upstream_type = find_upstream_type(data->interface_name); Loading Loading @@ -3276,6 +3279,10 @@ int rmnet_ipa3_query_tethering_stats(struct wan_ioctl_query_tether_stats *data, enum ipa_upstream_type upstream_type; int rc = 0; /* prevent string buffer overflows */ data->upstreamIface[IFNAMSIZ-1] = '\0'; data->tetherIface[IFNAMSIZ-1] = '\0'; /* get IPA backhaul type */ upstream_type = find_upstream_type(data->upstreamIface); Loading Loading @@ -3310,6 +3317,10 @@ int rmnet_ipa3_query_tethering_stats_all( int rc = 0; memset(&tether_stats, 0, sizeof(struct wan_ioctl_query_tether_stats)); /* prevent string buffer overflows */ data->upstreamIface[IFNAMSIZ-1] = '\0'; /* get IPA backhaul type */ upstream_type = find_upstream_type(data->upstreamIface); Loading Loading @@ -3353,6 +3364,9 @@ int rmnet_ipa3_reset_tethering_stats(struct wan_ioctl_reset_tether_stats *data) memset(&tether_stats, 0, sizeof(struct wan_ioctl_query_tether_stats)); /* prevent string buffer overflows */ data->upstreamIface[IFNAMSIZ-1] = '\0'; /* get IPA backhaul type */ upstream_type = find_upstream_type(data->upstreamIface); Loading Loading
drivers/platform/msm/ipa/ipa_v2/rmnet_ipa.c +14 −0 Original line number Diff line number Diff line Loading @@ -2693,6 +2693,9 @@ int rmnet_ipa_set_data_quota(struct wan_ioctl_set_data_quota *data) enum ipa_upstream_type upstream_type; int rc = 0; /* prevent string buffer overflows */ data->interface_name[IFNAMSIZ-1] = '\0'; /* get IPA backhaul type */ upstream_type = find_upstream_type(data->interface_name); Loading Loading @@ -2982,6 +2985,10 @@ int rmnet_ipa_query_tethering_stats(struct wan_ioctl_query_tether_stats *data, enum ipa_upstream_type upstream_type; int rc = 0; /* prevent string buffer overflows */ data->upstreamIface[IFNAMSIZ-1] = '\0'; data->tetherIface[IFNAMSIZ-1] = '\0'; /* get IPA backhaul type */ upstream_type = find_upstream_type(data->upstreamIface); Loading Loading @@ -3016,6 +3023,10 @@ int rmnet_ipa_query_tethering_stats_all( int rc = 0; memset(&tether_stats, 0, sizeof(struct wan_ioctl_query_tether_stats)); /* prevent string buffer overflows */ data->upstreamIface[IFNAMSIZ-1] = '\0'; /* get IPA backhaul type */ upstream_type = find_upstream_type(data->upstreamIface); Loading Loading @@ -3059,6 +3070,9 @@ int rmnet_ipa_reset_tethering_stats(struct wan_ioctl_reset_tether_stats *data) memset(&tether_stats, 0, sizeof(struct wan_ioctl_query_tether_stats)); /* prevent string buffer overflows */ data->upstreamIface[IFNAMSIZ-1] = '\0'; /* get IPA backhaul type */ upstream_type = find_upstream_type(data->upstreamIface); Loading
drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c +14 −0 Original line number Diff line number Diff line Loading @@ -2984,6 +2984,9 @@ int rmnet_ipa3_set_data_quota(struct wan_ioctl_set_data_quota *data) enum ipa_upstream_type upstream_type; int rc = 0; /* prevent string buffer overflows */ data->interface_name[IFNAMSIZ-1] = '\0'; /* get IPA backhaul type */ upstream_type = find_upstream_type(data->interface_name); Loading Loading @@ -3276,6 +3279,10 @@ int rmnet_ipa3_query_tethering_stats(struct wan_ioctl_query_tether_stats *data, enum ipa_upstream_type upstream_type; int rc = 0; /* prevent string buffer overflows */ data->upstreamIface[IFNAMSIZ-1] = '\0'; data->tetherIface[IFNAMSIZ-1] = '\0'; /* get IPA backhaul type */ upstream_type = find_upstream_type(data->upstreamIface); Loading Loading @@ -3310,6 +3317,10 @@ int rmnet_ipa3_query_tethering_stats_all( int rc = 0; memset(&tether_stats, 0, sizeof(struct wan_ioctl_query_tether_stats)); /* prevent string buffer overflows */ data->upstreamIface[IFNAMSIZ-1] = '\0'; /* get IPA backhaul type */ upstream_type = find_upstream_type(data->upstreamIface); Loading Loading @@ -3353,6 +3364,9 @@ int rmnet_ipa3_reset_tethering_stats(struct wan_ioctl_reset_tether_stats *data) memset(&tether_stats, 0, sizeof(struct wan_ioctl_query_tether_stats)); /* prevent string buffer overflows */ data->upstreamIface[IFNAMSIZ-1] = '\0'; /* get IPA backhaul type */ upstream_type = find_upstream_type(data->upstreamIface); Loading