diff options
| author | Boris Brezillon <[email protected]> | 2018-01-18 14:58:21 +0000 |
|---|---|---|
| committer | Eric Anholt <[email protected]> | 2018-01-18 20:17:03 +0000 |
| commit | 17b11b76b87afe9f8be199d7a5f442497133e2b0 (patch) | |
| tree | a664338716ad69536f4330670b8ffee74e6916e8 /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | drm/vc4: Flush the caches before the bin jobs, as well. (diff) | |
| download | kernel-17b11b76b87afe9f8be199d7a5f442497133e2b0.tar.gz kernel-17b11b76b87afe9f8be199d7a5f442497133e2b0.zip | |
drm/vc4: Fix NULL pointer dereference in vc4_save_hang_state()
When saving BOs in the hang state we skip one entry of the
kernel_state->bo[] array, thus leaving it to NULL. This leads to a NULL
pointer dereference when, later in this function, we iterate over all
BOs to check their ->madv state.
Fixes: ca26d28bbaa3 ("drm/vc4: improve throughput by pipelining binning and rendering jobs")
Cc: <[email protected]>
Signed-off-by: Boris Brezillon <[email protected]>
Signed-off-by: Eric Anholt <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions
