Il 20/12/2013 07:47, Hannes Reinecke ha scritto: >> > >> > How about changing the local buffer to heap memory instead, and bumping >> > SE_INQUIRY_BUF to 1024 bytes..? >> > > Ok. But then we should have a quick check at the start > > if (cmd->data_length > SE_INQUIRY_BUF) > len = cmd->data_length > else > len = SE_INQUIRY_BUF > > to catch oversized requests. Why do you need it? If inquiry data is always <1K, when cmd->data_length is large you can just need to write zeroes to the buffer after the first SE_INQUIRY_BUF bytes. Paolo -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html