diff options
author | Cornelia Huck <cohuck@redhat.com> | 2019-03-11 10:59:53 +0100 |
---|---|---|
committer | Cornelia Huck <cohuck@redhat.com> | 2019-03-11 12:06:50 +0100 |
commit | 50b7f1b7236bab08ebbbecf90521e84b068d7a17 (patch) | |
tree | 0bbda81652f89070452ddd3edd59c65c07e1abf7 /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | |
parent | 152e9b8676c6e788c6bff095c1eaae7b86df5003 (diff) |
vfio: ccw: only free cp on final interrupt
When we get an interrupt for a channel program, it is not
necessarily the final interrupt; for example, the issuing
guest may request an intermediate interrupt by specifying
the program-controlled-interrupt flag on a ccw.
We must not switch the state to idle if the interrupt is not
yet final; even more importantly, we must not free the translated
channel program if the interrupt is not yet final, or the host
can crash during cp rewind.
Fixes: e5f84dbaea59 ("vfio: ccw: return I/O results asynchronously")
Cc: stable@vger.kernel.org # v4.12+
Reviewed-by: Eric Farman <farman@linux.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c')
0 files changed, 0 insertions, 0 deletions