From: Jeff Garzik <jgarzik@pobox.com>
To: linux-scsi@vger.kernel.org
Subject: PATCH: scsi_debug bug
Date: Sun, 29 Jun 2003 15:04:27 -0400 [thread overview]
Message-ID: <20030629190427.GA2552@gtf.org> (raw)
This is for 2.5, but should go back to 2.4 I suppose.
MODE_SENSE_10 alloc_len LSB is in cdb byte 8, not byte 6, AFAIK...
Jeff
===== drivers/scsi/scsi_debug.c 1.39 vs edited =====
--- 1.39/drivers/scsi/scsi_debug.c Mon Jun 2 20:42:21 2003
+++ edited/drivers/scsi/scsi_debug.c Sun Jun 29 15:06:03 2003
@@ -687,7 +687,7 @@
pcontrol = (cmd[2] & 0xc0) >> 6;
pcode = cmd[2] & 0x3f;
msense_6 = (MODE_SENSE == cmd[0]);
- alloc_len = msense_6 ? cmd[4] : ((cmd[7] << 8) | cmd[6]);
+ alloc_len = msense_6 ? cmd[4] : ((cmd[7] << 8) | cmd[8]);
/* printk(KERN_INFO "msense: dbd=%d pcontrol=%d pcode=%d "
"msense_6=%d alloc_len=%d\n", dbd, pcontrol, pcode, "
"msense_6, alloc_len); */
next reply other threads:[~2003-06-29 18:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-29 19:04 Jeff Garzik [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-07-06 15:38 PATCH: scsi_debug bug Jeff Garzik
2003-07-08 18:00 ` dougg
2003-07-08 22:18 ` Alan Cox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030629190427.GA2552@gtf.org \
--to=jgarzik@pobox.com \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox