summaryrefslogtreecommitdiffstats
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
parent9b16b9edb4fd0dc86ee0fbe1f7ede580e26e85f4 (diff)
downloadlinux-3717ef0c63e90686d959158e9728a13a49229be6.tar.bz2
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