commit | 60f207a5b6d8f23c2e8388b415e8d5c7311cc79d | [log] [tgz] |
---|---|---|
author | Andrey Ryabinin <a.ryabinin@samsung.com> | Mon May 25 13:29:44 2015 +0300 |
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | Tue May 26 17:31:52 2015 +0200 |
tree | 222c8cbf96f442329c2dc37ae7a986bc5e7e4c12 | |
parent | 955f3c334f0fb2b843efad5cc6d3b7e141e9d666 [diff] |
drm/atomic: fix out of bounds read in for_each_*_in_state helpers for_each_*_in_state validate array index after access to array elements, thus perform out of bounds read. Fix this by validating index in the first place and read array element iff validation was successful. Fixes: df63b9994eaf ("drm/atomic: Add for_each_{connector,crtc,plane}_in_state helper macros") Signed-off-by: Andrey Ryabinin <a.ryabinin@samsung.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>