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

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

Merge "msm: ipa3: Fix to avoid accessing of uninitialized structure"

parents 536362dc d43fd628
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -5904,6 +5904,10 @@ static int ipa3_smp2p_probe(struct device *dev)
	struct device_node *node = dev->of_node;
	int res;

	if (ipa3_ctx == NULL) {
		IPAERR("ipa3_ctx was not initialized\n");
		return -ENXIO;
	}
	IPADBG("node->name=%s\n", node->name);
	if (strcmp("qcom,smp2pgpio_map_ipa_1_out", node->name) == 0) {
		res = of_get_gpio(node, 0);