linux/drivers/s390
Jason Gunthorpe 9b0d6b7e28 vfio/ap,ccw: Fix open/close when multiple device FDs are open
The user can open multiple device FDs if it likes, however these open()
functions call vfio_register_notifier() on some device global
state. Calling vfio_register_notifier() twice in will trigger a WARN_ON
from notifier_chain_register() and the first close will wrongly delete the
notifier and more.

Since these really want the new open/close_device() semantics just change
the functions over.

Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/12-v4-9ea22c5e6afb+1adf-vfio_reflck_jgg@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2021-08-11 09:50:11 -06:00
..
block block-5.14-2021-07-08 2021-07-09 12:05:33 -07:00
char s390: Fix fall-through warnings for Clang 2021-07-13 14:43:09 -05:00
cio vfio/ap,ccw: Fix open/close when multiple device FDs are open 2021-08-11 09:50:11 -06:00
crypto vfio/ap,ccw: Fix open/close when multiple device FDs are open 2021-08-11 09:50:11 -06:00
net s390: Fix fall-through warnings for Clang 2021-07-13 14:43:09 -05:00
scsi scsi: zfcp: Report port fc_security as unknown early during remote cable pull 2021-07-12 21:51:50 -04:00
virtio virtio/s390: get rid of open-coded kvm hypercall 2021-06-28 11:18:28 +02:00
Makefile s390: remove pointless drivers-y in drivers/s390/Makefile 2019-09-16 13:21:51 +02:00