aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/Context.c
diff options
context:
space:
mode:
authorMartin K. Petersen <[email protected]>2014-04-08 22:43:43 -0400
committerJens Axboe <[email protected]>2014-04-09 08:00:01 -0600
commitb7aa84d9cb9f26da1a9312c3e39dbd1a3c25a426 (patch)
tree583b4d4a8cab1128b26c12e61a6cd598fcc268de /tools/perf/scripts/python/Perf-Trace-Util/Context.c
parent44bd70c347c466616e430b044c49d48fac29789d (diff)
block: Fix for_each_bvec()
Commit 4550dd6c6b062 introduced for_each_bvec() which iterates over each bvec attached to a bio or bip. However, the macro fails to check bi_size before dereferencing which can lead to crashes while counting/mapping integrity scatterlist segments. Signed-off-by: Martin K. Petersen <[email protected]> Cc: Kent Overstreet <[email protected]> Cc: Nicholas Bellinger <[email protected]> Cc: <[email protected]> # v3.14+ Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/Context.c')
0 files changed, 0 insertions, 0 deletions