diff options
| author | Paolo Bonzini <[email protected]> | 2012-09-07 15:30:35 +0000 |
|---|---|---|
| committer | Nicholas Bellinger <[email protected]> | 2012-09-07 18:10:32 +0000 |
| commit | 3717ef0c63e90686d959158e9728a13a49229be6 (patch) | |
| tree | 2533871c52a5b22e1471443f972850afcfe480b6 /lib/dynamic_debug.c | |
| parent | target: fail REPORT LUNS with less than 16 bytes of payload (diff) | |
| download | kernel-3717ef0c63e90686d959158e9728a13a49229be6.tar.gz kernel-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 <[email protected]>
Signed-off-by: Nicholas Bellinger <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions
