vfio: ccw: fix error return in vfio_ccw_sch_event
authorDong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
Wed, 2 May 2018 07:25:59 +0000 (09:25 +0200)
committerCornelia Huck <cohuck@redhat.com>
Tue, 29 May 2018 07:27:41 +0000 (09:27 +0200)
commit2c861d89ccda2fbcea9358eff9cc5f8fae548be5
treefd337ef9fab21ce5b064c2e2cff7c585772f7849
parent3376d98021e915196f4894d835325a884e635a04
vfio: ccw: fix error return in vfio_ccw_sch_event

If the device has not been registered, or there is work pending,
we should reschedule a sch_event call again.

Signed-off-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
Message-Id: <20180502072559.50691-1-bjsdjshi@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
drivers/s390/cio/vfio_ccw_drv.c