aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorJohannes Thumshirn <[email protected]>2020-06-23 17:40:07 +0900
committerDavid Sterba <[email protected]>2020-07-27 12:55:27 +0200
commit923eb5236597c90b11114926025e0c04e4c1da32 (patch)
tree8dc1ea29912fc8a05fa01ec2813ab83bfcafacff /tools/perf/scripts/python/net_dropmonitor.py
parent4e9d0d0109d6b7ababf4d121168b0e97e4ae2f9d (diff)
btrfs: use free_root_extent_buffer to free root
In btrfs_put_root() we're freeing a btrfs_root's 'node' and 'commit_root' extent buffers manually via kfree(), while we're using free_root_extent_buffers() in the free_root_pointers() function above. free_root_extent_buffers() also NULLs the pointers after freeing, which mitigates potential double frees. Reviewed-by: Anand Jain <[email protected]> Signed-off-by: Johannes Thumshirn <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions