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:Ben Hutchings <ben@decadent.org.uk>
Loading
Please sign in to comment