aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0534-drm-amd-dal-Use-correct-index-when-iterating-enabled.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0534-drm-amd-dal-Use-correct-index-when-iterating-enabled.patch')
-rw-r--r--common/recipes-kernel/linux/files/0534-drm-amd-dal-Use-correct-index-when-iterating-enabled.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0534-drm-amd-dal-Use-correct-index-when-iterating-enabled.patch b/common/recipes-kernel/linux/files/0534-drm-amd-dal-Use-correct-index-when-iterating-enabled.patch
new file mode 100644
index 00000000..0d7c8848
--- /dev/null
+++ b/common/recipes-kernel/linux/files/0534-drm-amd-dal-Use-correct-index-when-iterating-enabled.patch
@@ -0,0 +1,28 @@
+From 7081369ebfd85c326cee2f2f2d363fa3318714e2 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 0534/1110] drm/amd/dal: Use correct index when iterating
+ enabled streams
+
+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];
+ }
+ }
+--
+2.7.4
+