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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:08:55 +0000 (13:08 +0200)
commit7dcffd98360a1f0e953eb2aa86976032d83f90dd
tree571bbf313dbbae5e55ba1d3f364dc9c1a2958878
parent67c0f84827e123953b8baac9de20fe039b5c83fd
vfio: ccw: fix error return in vfio_ccw_sch_event

[ Upstream commit 2c861d89ccda2fbcea9358eff9cc5f8fae548be5 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/s390/cio/vfio_ccw_drv.c