target: Fix reading of data length fields for UNMAP commands
authorRoland Dreier <roland@purestorage.com>
Mon, 16 Jul 2012 22:34:23 +0000 (15:34 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 17 Jul 2012 00:35:36 +0000 (17:35 -0700)
commit1a5fa4576ec8a462313c7516b31d7453481ddbe8
tree5a88ad2720656e7286bde6d4d301382877b67af1
parent2594e29865c291db162313187612cd9f14538f33
target: Fix reading of data length fields for UNMAP commands

The UNMAP DATA LENGTH and UNMAP BLOCK DESCRIPTOR DATA LENGTH fields
are in the unmap descriptor (the payload transferred to our data out
buffer), not in the CDB itself.  Read them from the correct place in
target_emulated_unmap.

Signed-off-by: Roland Dreier <roland@purestorage.com>
Cc: stable@vger.kernel.org
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_iblock.c