aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorOmar Sandoval <[email protected]>2015-02-24 02:47:06 -0800
committerChris Mason <[email protected]>2015-04-26 06:27:01 -0700
commitb86054540e4ad7d8df67f3a80658d037a2ce1c02 (patch)
treebd2135e03872c758cb1f543e1f02e40f71fcdd16 /tools/perf/util/trace-event-scripting.c
parent5ca64f45e92dc52bd3bc1ad93f4f9e5a57955f28 (diff)
btrfs: check io_ctl_prepare_pages return in __btrfs_write_out_cache
If io_ctl_prepare_pages fails, the pages in io_ctl.pages are not valid. When we try to access them later, things will blow up in various ways. Also fix the comment about the return value, which is an errno on error, not -1, and update the cases where it was not. Reviewed-by: Liu Bo <[email protected]> Signed-off-by: Omar Sandoval <[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