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