aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-09-07 17:30:35 +0200
committerNicholas Bellinger <nab@linux-iscsi.org>2012-09-07 11:10:32 -0700
commit3717ef0c63e90686d959158e9728a13a49229be6 (patch)
tree2533871c52a5b22e1471443f972850afcfe480b6 /include
parenttarget: fail REPORT LUNS with less than 16 bytes of payload (diff)
downloadlinux-dev-3717ef0c63e90686d959158e9728a13a49229be6.tar.xz
linux-dev-3717ef0c63e90686d959158e9728a13a49229be6.zip
target: support zero-size allocation lengths in transport_kmap_data_sg
In order to support zero-size allocation lengths, do not assert that we have a scatterlist until after checking cmd->data_length. But once we do this, we can have two cases of transport_kmap_data_sg returning NULL: a zero-size allocation length, or an out-of-memory condition. Report the latter using sense codes, so that the SCSI command that triggered it will fail. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions