aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorPaul Durrant <[email protected]>2019-12-02 11:41:16 +0000
committerJuergen Gross <[email protected]>2019-12-04 11:35:32 +0100
commit196748a276b4dee01177e6b7abcda27cd759de83 (patch)
treeaa6b4957093d5db5daef3581963436ed7be1b748 /tools/perf/util/trace-event-scripting.c
parentb3f7931f5c61ba39e81a5c958bf5d65ebb1838af (diff)
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 <[email protected]> Signed-off-by: Paul Durrant <[email protected]> Reviewed-by: Jan Beulich <[email protected]> Reviewed-by: Juergen Gross <[email protected]> Signed-off-by: Juergen Gross <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions