summaryrefslogtreecommitdiff
path: root/staging/cli_sequence.c
diff options
context:
space:
mode:
Diffstat (limited to 'staging/cli_sequence.c')
0 files changed, 0 insertions, 0 deletions
et-next.git/tree/?h=packet-loop-back&id=554617b2bbe25c3fb3c80c28fe7a465884bb40b1'>0a4a342ff1d0ae52a6cad39352a714a914489bd1 parent02eb924fabc5b699c0d9d354491e6f0767e3c139 (diff)
target/user: Return an error if cmd data size is too large
Userspace should be implementing VPD B0 (Block Limits) to inform the initiator of max data size, but just in case we do get a too-large request, do what the spec says and return INVALID_CDB_FIELD. Make sure to unlock udev->cmdr_lock before returning. Signed-off-by: Andy Grover <agrover@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Mike Christie <mchristi@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat