Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4b91ee1 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ipa: Fix pointer checked for NULL may be used"

parents 41df2167 1744066e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2601,6 +2601,9 @@ int rmnet_ipa_query_tethering_stats(struct wan_ioctl_query_tether_stats *data,
	if (data != NULL) {
		data->upstreamIface[IFNAMSIZ-1] = '\0';
		data->tetherIface[IFNAMSIZ-1] = '\0';
	} else if (reset != false) {
		/* Data can be NULL for reset stats, checking reset != False */
		return -EINVAL;
	}

	req = kzalloc(sizeof(struct ipa_get_data_stats_req_msg_v01),
+3 −0
Original line number Diff line number Diff line
@@ -2759,6 +2759,9 @@ int rmnet_ipa3_query_tethering_stats(struct wan_ioctl_query_tether_stats *data,
	if (data != NULL) {
		data->upstreamIface[IFNAMSIZ-1] = '\0';
		data->tetherIface[IFNAMSIZ-1] = '\0';
	} else if (reset != false) {
		/* Data can be NULL for reset stats, checking reset != False */
		return -EINVAL;
	}

	req = kzalloc(sizeof(struct ipa_get_data_stats_req_msg_v01),