summaryrefslogtreecommitdiff
path: root/include/asm-generic
diff options
context:
space:
mode:
authorRoland Dreier <roland@purestorage.com>2014-10-14 14:16:24 -0700
committerJiri Slaby <jslaby@suse.cz>2014-12-06 15:18:22 +0100
commit63af3438d269f8a2c27ad1c2d5da7f4b190b8462 (patch)
treec88f081e498c7a9e63b201c921bd7433a2ee1938 /include/asm-generic
parent090ec5fef8c36ce8cac294eddaaacf1a1cb9e56e (diff)
target: Don't call TFO->write_pending if data_length == 0
commit 885e7b0e181c14e4d0ddd26c688bad2b84c1ada9 upstream. 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 <craig.watson@vanguard-rugged.com> Signed-off-by: Roland Dreier <roland@purestorage.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'include/asm-generic')
0 files changed, 0 insertions, 0 deletions