aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorXiubo Li <[email protected]>2017-03-27 17:07:40 +0800
committerNicholas Bellinger <[email protected]>2017-03-30 01:36:52 -0700
commitab22d2604c86ceb01bb2725c9860b88a7dd383bb (patch)
tree8b8db155ecf02c3219d796a361baa314b9651311 /tools/perf/scripts/python/export-to-postgresql.py
parent49cb77e297dc611a1b795cfeb79452b3002bd331 (diff)
tcmu: Fix possible overwrite of t_data_sg's last iov[]
If there has BIDI data, its first iov[] will overwrite the last iov[] for se_cmd->t_data_sg. To fix this, we can just increase the iov pointer, but this may introuduce a new memory leakage bug: If the se_cmd->data_length and se_cmd->t_bidi_data_sg->length are all not aligned up to the DATA_BLOCK_SIZE, the actual length needed maybe larger than just sum of them. So, this could be avoided by rounding all the data lengthes up to DATA_BLOCK_SIZE. Reviewed-by: Mike Christie <[email protected]> Tested-by: Ilias Tsitsimpis <[email protected]> Reviewed-by: Bryant G. Ly <[email protected]> Signed-off-by: Xiubo Li <[email protected]> Cc: [email protected] # 3.18+ Signed-off-by: Nicholas Bellinger <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions