diff options
author | Roland Dreier <[email protected]> | 2014-10-14 14:16:24 -0700 |
---|---|---|
committer | Nicholas Bellinger <[email protected]> | 2014-10-28 13:54:15 -0700 |
commit | 885e7b0e181c14e4d0ddd26c688bad2b84c1ada9 (patch) | |
tree | 05b77664a7b7f13158c1d4e7da8b99be6387fb2b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | cac7f2429872d3733dc3f9915857b1691da2eb2f (diff) |
target: Don't call TFO->write_pending if data_length == 0
If an initiator sends a zero-length command (e.g. TEST UNIT READY) but
sets the transfer direction in the transport layer to indicate a
data-out phase, we still shouldn't try to transfer data. At best it's
a NOP, and depending on the transport, we might crash on an
uninitialized sg list.
Reported-by: Craig Watson <[email protected]>
Signed-off-by: Roland Dreier <[email protected]>
Cc: <[email protected]> # 3.1
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