Home
last modified time | relevance | path

Searched hist:"71189 f263f8a3db7b72ca75be14e7309375e8707" (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/s390/cio/
H A Dvfio_ccw_cp.hdiff 71189f263f8a3db7b72ca75be14e7309375e8707 Mon Jan 21 02:55:18 CST 2019 Cornelia Huck <cohuck@redhat.com> 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>
H A Dvfio_ccw_fsm.cdiff 71189f263f8a3db7b72ca75be14e7309375e8707 Mon Jan 21 02:55:18 CST 2019 Cornelia Huck <cohuck@redhat.com> 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>
H A Dvfio_ccw_cp.cdiff 71189f263f8a3db7b72ca75be14e7309375e8707 Mon Jan 21 02:55:18 CST 2019 Cornelia Huck <cohuck@redhat.com> 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>