aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2013-02-20 14:06:20 -0500
committerChris Mason <[email protected]>2013-02-20 14:06:20 -0500
commit1cba0cdf5e4dbcd9e5fa5b54d7a028e55e2ca057 (patch)
tree7fb357815f9c0322ef7bee34772533a0342e5737 /tools/perf/util/trace-event-scripting.c
parente942f883bc6651d50be139477baf6fb0eed3d5bb (diff)
btrfs: Init io_lock after cloning btrfs device struct
__btrfs_close_devices() clones btrfs device structs with memcpy(). Some of the fields in the clone are reinitialized, but it's missing to init io_lock. In mainline this goes unnoticed, but on RT it leaves the plist pointing to the original about to be freed lock struct. Initialize io_lock after cloning, so no references to the original struct are left. Reported-and-tested-by: Mike Galbraith <[email protected]> Cc: [email protected] Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions