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

Commit c0a0712b authored by David Dai's avatar David Dai Committed by Gerrit - the friendly Code Review server
Browse files

msm: msm_bus: Fixing scoping in getpath



Looping was improperly scoped due to a recent change in formatting
causing out of bounds array accesses.

Change-Id: I75231f2ab874d1e57b9d9b825a1ab1a6df903944
Signed-off-by: default avatarDavid Dai <daidavid1@codeaurora.org>
parent 4f0acd67
Loading
Loading
Loading
Loading
+11 −12
Original line number Diff line number Diff line
@@ -453,7 +453,7 @@ static int getpath(struct device *src_dev, int dest, const char *cl_name)
									true;
				}
			}

		}
		/* Keep tabs of the previous search list */
		search_node = kzalloc(sizeof(struct bus_search_type),
				 GFP_KERNEL);
@@ -466,7 +466,6 @@ static int getpath(struct device *src_dev, int dest, const char *cl_name)
		depth_index++;
		list_splice_init(&edge_list, &traverse_list);
	}
	}
reset_traversed:
	copy_remaining_nodes(&edge_list, &traverse_list, &route_list);
	first_hop = prune_path(&route_list, dest, src, &black_list, found,