]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.4.13/drm-gma500-fix-possible-out-of-bounds-read.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.4.13 / drm-gma500-fix-possible-out-of-bounds-read.patch
CommitLineData
0a41819a
GKH
1From 7ccca1d5bf69fdd1d3c5fcf84faf1659a6e0ad11 Mon Sep 17 00:00:00 2001
2From: Itai Handler <itai_handler@hotmail.com>
3Date: Tue, 3 Nov 2015 00:20:56 +0200
4Subject: drm/gma500: Fix possible out of bounds read
5
6From: Itai Handler <itai_handler@hotmail.com>
7
8commit 7ccca1d5bf69fdd1d3c5fcf84faf1659a6e0ad11 upstream.
9
10Fix possible out of bounds read, by adding missing comma.
11The code may read pass the end of the dsi_errors array
12when the most significant bit (bit #31) in the intr_stat register
13is set.
14This bug has been detected using CppCheck (static analysis tool).
15
16Signed-off-by: Itai Handler <itai_handler@hotmail.com>
17Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
18Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
19
20---
21 drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c | 2 +-
22 1 file changed, 1 insertion(+), 1 deletion(-)
23
24--- a/drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c
25+++ b/drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c
26@@ -72,7 +72,7 @@ static const char *const dsi_errors[] =
27 "RX Prot Violation",
28 "HS Generic Write FIFO Full",
29 "LP Generic Write FIFO Full",
30- "Generic Read Data Avail"
31+ "Generic Read Data Avail",
32 "Special Packet Sent",
33 "Tearing Effect",
34 };