Skip to content

Commit 369168d

Browse files
Itai Handlergregkh
authored andcommitted
drm/gma500: Fix possible out of bounds read
commit 7ccca1d upstream. Fix possible out of bounds read, by adding missing comma. The code may read pass the end of the dsi_errors array when the most significant bit (bit #31) in the intr_stat register is set. This bug has been detected using CppCheck (static analysis tool). Signed-off-by: Itai Handler <itai_handler@hotmail.com> Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 89bd182 commit 369168d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ static const char *const dsi_errors[] = {
8585
"RX Prot Violation",
8686
"HS Generic Write FIFO Full",
8787
"LP Generic Write FIFO Full",
88-
"Generic Read Data Avail"
88+
"Generic Read Data Avail",
8989
"Special Packet Sent",
9090
"Tearing Effect",
9191
};

0 commit comments

Comments
 (0)