commit | 7e5082fbc00cc157e57a70cdb6b9bbb21289afb1 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Thu Dec 17 15:39:08 2015 +0300 |
committer | Eric Anholt <eric@anholt.net> | Thu Dec 17 11:40:21 2015 -0800 |
tree | b66ee7e19607c54997f2599dc3e25863d4af7214 | |
parent | 65c4777de54a39b2722a4b1ff3306d044014d511 [diff] |
drm/vc4: allocate enough memory in vc4_save_hang_state() "state" is smaller than "kernel_state" so we end up corrupting memory. Fixes: 214613656b51 ('drm/vc4: Add an interface for capturing the GPU state after a hang.') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Eric Anholt <eric@anholt.net>