projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0efc83
)
drm/msm/dsi: correct DSI id bounds check during registration
author
Lloyd Atkinson
<latkinso@codeaurora.org>
Tue, 16 Jan 2018 21:26:02 +0000
(16:26 -0500)
committer
Rob Clark
<robdclark@gmail.com>
Tue, 20 Feb 2018 15:41:20 +0000
(10:41 -0500)
Check DSI instance id argument against the proper boundary size
to protect against invalid configuration of the DSI id.
Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/dsi/dsi_manager.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/msm/dsi/dsi_manager.c
b/drivers/gpu/drm/msm/dsi/dsi_manager.c
index
1a54fd6
..
4cb1cb6
100644
(file)
--- a/
drivers/gpu/drm/msm/dsi/dsi_manager.c
+++ b/
drivers/gpu/drm/msm/dsi/dsi_manager.c
@@
-862,7
+862,7
@@
int msm_dsi_manager_register(struct msm_dsi *msm_dsi)
int id = msm_dsi->id;
int ret;
- if (id > DSI_MAX) {
+ if (id >
=
DSI_MAX) {
pr_err("%s: invalid id %d\n", __func__, id);
return -EINVAL;
}