target: allow underflow/overflow for PR OUT etc. commands
authorRoland Dreier <roland@purestorage.com>
Wed, 22 Jul 2015 22:08:18 +0000 (15:08 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 31 Jul 2015 06:41:16 +0000 (23:41 -0700)
commitc72c5250224d475614a00c1d7e54a67f77cd3410
tree27b7ac8c05d32b12750a1076447da71d25226593
parentaa75679c797c0250a853e600e45368f1f9545c27
target: allow underflow/overflow for PR OUT etc. commands

It's not necessarily a fatal error if a command with a data-out phase
has a data length that differs from the transport data length (e.g.
PERSISTENT RESERVE OUT might have a parameter list length in the CDB
that's smaller than the FC_DL field), so allow these commands.  The
Windows compliance test sends them.

Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Spencer Baugh <sbaugh@catern.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_transport.c