Commit f4c55b72 authored by Ben Hutchings's avatar Ben Hutchings
Browse files

scsi: sg: Change next_cmd_len handling to mirror upstream



Change the type of next_cmd_len to unsigned char, done in upstream
commit 65c26a0f "sg: relax 16 byte cdb restriction".

Move the range check from sg_write() to sg_ioctl(), which was done by
that commit and commit bf33f87d "scsi: sg: check length passed to
SG_NEXT_CMD_LEN".  Continue limiting the command length to
MAX_COMMAND_SIZE (16).

Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent fc23502b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment