Re: [PATCH] target: Make target_emulate_inquiry_std failure set ->scsi_sense_reason

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 13, 2012 at 2:16 PM, Nicholas A. Bellinger
<nab@xxxxxxxxxxxxxxx> wrote:
>        if (cmd->data_length < 6) {
>                pr_err("SCSI Inquiry payload length: %u"
>                        " too small for EVPD=0\n", cmd->data_length);
> +               cmd->scsi_sense_reason = TCM_INVALID_CDB_FIELD;
>                return -EINVAL;
>        }

Not sure if this makes sense, since the result is wrong either way.
(INQUIRY is supposed to succeed no matter what the allocation
length is)

 - R.
--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux