aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorAlex Elder <[email protected]>2013-05-16 15:04:20 -0500
committerAlex Elder <[email protected]>2013-05-17 12:50:03 -0500
commit7262cfca430a1a0e0707149af29ae86bc0ded230 (patch)
tree30b8e36ffebad551fd4e4392ca9f49fd22d2298c /tools/perf/util/trace-event-scripting.c
parent39be95e9c8c0b5668c9f8806ffe29bf9f4bc0f40 (diff)
rbd: don't destroy ceph_opts in rbd_add()
Whether rbd_client_create() successfully creates a new client or not, it takes responsibility for getting the ceph_opts structure it's passed destroyed. If successful, the structure becomes associated with the created client; if not, rbd_client_create() will destroy it. Previously, rbd_get_client() would call ceph_destroy_options() if rbd_get_client() failed, and that meant it got called twice. That led freeing various pointers more than once, which is never a good idea. This resolves: http://tracker.ceph.com/issues/4559 Cc: [email protected] # 3.8+ Reported-by: Dan van der Ster <[email protected]> Signed-off-by: Alex Elder <[email protected]> Reviewed-by: Josh Durgin <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions