Skip to content

Commit d0f2423

Browse files
Itai Handlergregkh
Itai Handler
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 raspberrypi#31) in the intr_stat register is set. This bug has been detected using CppCheck (static analysis tool). Signed-off-by: Itai Handler <[email protected]> Signed-off-by: Patrik Jakobsson <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent bb366dc commit d0f2423

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
@@ -72,7 +72,7 @@ static const char *const dsi_errors[] = {
7272
"RX Prot Violation",
7373
"HS Generic Write FIFO Full",
7474
"LP Generic Write FIFO Full",
75-
"Generic Read Data Avail"
75+
"Generic Read Data Avail",
7676
"Special Packet Sent",
7777
"Tearing Effect",
7878
};

0 commit comments

Comments
 (0)