]> git.baikalelectronics.ru Git - kernel.git/commit
target: support zero allocation length in SBC commands
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 7 Sep 2012 15:30:40 +0000 (17:30 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 18 Sep 2012 00:13:38 +0000 (17:13 -0700)
commit2621da7560c3d8dd580149328475ec705469fe8a
tree25290267964578f79c10590a6511d10b85e7de96
parent02a54bae0f304c47d222b9aff0861c4b8495b9ed
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>
drivers/target/target_core_sbc.c