aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorEric Sandeen <[email protected]>2014-06-12 05:39:58 +0000
committerChris Mason <[email protected]>2014-06-13 16:52:28 +0000
commit3e2426bd0eb980648449e7a2f5a23e3cd3c7725c (patch)
tree4e08fc2ba5d9d174882ca9ad40f43327e701db4c /tools/perf/scripts/python/syscall-counts-by-pid.py
parentbtrfs: free ulist in qgroup_shared_accounting() error path (diff)
downloadkernel-3e2426bd0eb980648449e7a2f5a23e3cd3c7725c.tar.gz
kernel-3e2426bd0eb980648449e7a2f5a23e3cd3c7725c.zip
btrfs: fix use of uninit "ret" in end_extent_writepage()
If this condition in end_extent_writepage() is false: if (tree->ops && tree->ops->writepage_end_io_hook) we will then test an uninitialized "ret" at: ret = ret < 0 ? ret : -EIO; The test for ret is for the case where ->writepage_end_io_hook failed, and we'd choose that ret as the error; but if there is no ->writepage_end_io_hook, nothing sets ret. Initializing ret to 0 should be sufficient; if writepage_end_io_hook wasn't set, (!uptodate) means non-zero err was passed in, so we choose -EIO in that case. Signed-of-by: Eric Sandeen <[email protected]> Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions