diff options
| author | 2019-12-02 11:41:16 +0000 | |
|---|---|---|
| committer | 2019-12-04 11:35:32 +0100 | |
| commit | 196748a276b4dee01177e6b7abcda27cd759de83 (patch) | |
| tree | aa6b4957093d5db5daef3581963436ed7be1b748 /tools/perf/scripts/python/netdev-times.py | |
| parent | xen/gntdev: switch from kcalloc() to kvcalloc() (diff) | |
| download | linux-rng-196748a276b4dee01177e6b7abcda27cd759de83.tar.xz linux-rng-196748a276b4dee01177e6b7abcda27cd759de83.zip | |
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>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
