diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-09-07 17:30:40 +0200 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-09-18 02:13:38 +0200 |
commit | a50da144d048f9dbebed2b1441ed779d6bbbcd03 (patch) | |
tree | 25290267964578f79c10590a6511d10b85e7de96 /drivers/target/Kconfig | |
parent | target: fix truncation of mode data, support zero allocation length (diff) | |
download | linux-a50da144d048f9dbebed2b1441ed779d6bbbcd03.tar.xz linux-a50da144d048f9dbebed2b1441ed779d6bbbcd03.zip |
target: support zero allocation length in SBC commands
READ CAPACITY must be subject to the same treatment as INQUIRY,
REQUEST SENSE, and MODE SENSE, but there are no pre-existing bugs
to fix here. Just use an on-stack buffer, and copy to it after
checking the return value of transport_kmap_data_sg.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/Kconfig')
0 files changed, 0 insertions, 0 deletions