aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/1099-drm-amd-dal-Use-correct-index-when-iterating-enabled.patch
blob: 5cdca382c1039d0d67e116d6af29deb95ceca4ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From baa6bce3ea3484d2a2a95724b9ebb628e3c7f897 Mon Sep 17 00:00:00 2001
From: Harry Wentland <harry.wentland@amd.com>
Date: Fri, 27 Nov 2015 11:51:05 -0500
Subject: [PATCH 1099/1565] drm/amd/dal: Use correct index when iterating
 enabled streams

Change-Id: I07783557e75aeac2fd71e6c8c9d4257163934204
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
---
 drivers/gpu/drm/amd/dal/dc/core/dc_link_hwss.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/dal/dc/core/dc_link_hwss.c b/drivers/gpu/drm/amd/dal/dc/core/dc_link_hwss.c
index 551a98f..e7673ed 100644
--- a/drivers/gpu/drm/amd/dal/dc/core/dc_link_hwss.c
+++ b/drivers/gpu/drm/amd/dal/dc/core/dc_link_hwss.c
@@ -90,7 +90,7 @@ void dp_disable_link_phy_mst(struct core_link *link, struct core_stream *stream)
 	for (i = 0; i < link->enabled_stream_count; i++) {
 		if (link->enabled_streams[i] == stream) {
 			link->enabled_stream_count--;
-			for (j = i; i < link->enabled_stream_count; j++)
+			for (j = i; j < link->enabled_stream_count; j++)
 				link->enabled_streams[j] = link->enabled_streams[j+1];
 		}
 	}
-- 
1.9.1