aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio/vfio_ccw_private.h
diff options
context:
space:
mode:
authorCornelia Huck <cohuck@redhat.com>2019-01-21 09:55:18 +0100
committerCornelia Huck <cohuck@redhat.com>2019-04-24 14:18:51 +0200
commit71189f263f8a3db7b72ca75be14e7309375e8707 (patch)
tree252d086e298f5f219b50026a022ab02681bfcea7 /drivers/s390/cio/vfio_ccw_private.h
parents390/cpum_cf_diag: Add support for CPU-MF SVN 6 (diff)
downloadlinux-dev-71189f263f8a3db7b72ca75be14e7309375e8707.tar.xz
linux-dev-71189f263f8a3db7b72ca75be14e7309375e8707.zip
vfio-ccw: make it safe to access channel programs
When we get a solicited interrupt, the start function may have been cleared by a csch, but we still have a channel program structure allocated. Make it safe to call the cp accessors in any case, so we can call them unconditionally. While at it, also make sure that functions called from other parts of the code return gracefully if the channel program structure has not been initialized (even though that is a bug in the caller). Reviewed-by: Eric Farman <farman@linux.ibm.com> Reviewed-by: Farhan Ali <alifm@linux.ibm.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'drivers/s390/cio/vfio_ccw_private.h')
0 files changed, 0 insertions, 0 deletions