linux_dsm_epyc7002/drivers/xen/xenbus
Paul Durrant 196748a276 xen/xenbus: reference count registered modules
To prevent a PV driver module being removed whilst attached to its other
end, and hence xenbus calling into potentially invalid text, take a
reference on the module before calling the probe() method (dropping it if
unsuccessful) and drop the reference after returning from the remove()
method.

Suggested-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Paul Durrant <pdurrant@amazon.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
2019-12-04 11:35:32 +01:00
..
Makefile
xenbus_client.c
xenbus_comms.c
xenbus_dev_backend.c
xenbus_dev_frontend.c
xenbus_probe_backend.c
xenbus_probe_frontend.c
xenbus_probe.c
xenbus_xs.c
xenbus.h