]> git.karo-electronics.de Git - karo-tx-linux.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>
Fri, 7 Sep 2012 18:53:33 +0000 (11:53 -0700)
commite40bf3b1c4038e3b851dc017f9e0883a79a8eeb4
treed0231cedccac092099de5bde850cf19429ef320e
parent396088c69b902ddd4b4437a9bb9e9c73e603b278
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