From mboxrd@z Thu Jan  1 00:00:00 1970
From: "Timothy Thelin" <Timothy.Thelin@wdc.com>
Subject: [RESEND][PATCH 2.6.14-rc1] scsi: sd, sr, st, and scsi_lib all fail to copy cmd_len to new cmd
Date: Tue, 13 Sep 2005 19:56:28 -0700
Message-ID: <CA45571DE57E1C45BF3552118BA92C9D69BDE9@WDSCEXBECL03.sc.wdc.com>
Mime-Version: 1.0
Content-Type: multipart/mixed;
	boundary="----_=_NextPart_001_01C5B8D7.E73115DD"
Return-path: <linux-kernel-owner+glk-linux-kernel-3=40m.gmane.org-S964991AbVINC41@vger.kernel.org>
Content-class: urn:content-classes:message
Sender: linux-kernel-owner@vger.kernel.org
To: James Bottomley <James.Bottomley@SteelEye.com>, Mike Christie <michaelc@cs.wisc.edu>, SCSI Mailing List <linux-scsi@vger.kernel.org>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>, Andrew Morton <akpm@osdl.org>
List-Id: linux-scsi@vger.kernel.org

This is a multi-part message in MIME format.

------_=_NextPart_001_01C5B8D7.E73115DD
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Sorry it wrapped.  It's now an attachment.

This fixes an issue in scsi command initialization from a request
where sd, sr, st, and scsi_lib all fail to copy the request's
cmd_len to the scsi command's cmd_len field.

Signed-off-by: Timothy Thelin <timothy.thelin@wdc.com>

------_=_NextPart_001_01C5B8D7.E73115DD
Content-Type: application/octet-stream;
	name="scsi-sd-sr-st-and-scsi_lib-all-fail-to-copy-cmd_len-to-new-cmd.patch"
Content-Transfer-Encoding: base64
Content-Description: scsi-sd-sr-st-and-scsi_lib-all-fail-to-copy-cmd_len-to-new-cmd.patch
Content-Disposition: attachment;
	filename="scsi-sd-sr-st-and-scsi_lib-all-fail-to-copy-cmd_len-to-new-cmd.patch"

ZGlmZiAtcHUgbGludXgtMi42LjE0LXJjMS5vcmlnL2RyaXZlcnMvc2NzaS9zY3NpX2xpYi5jIGxp
bnV4LTIuNi4xNC1yYzEvZ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
Lm9yaWcvZHJpdmVycy9zY3NpL3N0LmMJMjAwNS0wOS0xMiAyMDoxMjowOS4wMDAwMDAwMDAgLTA3
MDAKKysrIGxpbnV4LTIuNi4xNC1yYzEvZHJpdmVycy9zY3NpL3N0LmMJMjAwNS0wOS0xMyAxNjow
NDoxMC4wMDAwMDAwMDAgLTA3MDAKQEAgLTQyMDYsNiArNDIwNiw3IEBAIHN0YXRpYyBpbnQgc3Rf
aW5pdF9jb21tYW5kKHN0cnVjdCBzY3NpX2MKIAkJcmV0dXJuIDA7CiAKIAltZW1jcHkoU0NwbnQt
PmNtbmQsIHJxLT5jbWQsIHNpemVvZihTQ3BudC0+Y21uZCkpOworCVNDcG50LT5jbWRfbGVuID0g
cnEtPmNtZF9sZW47CiAKIAlpZiAocnFfZGF0YV9kaXIocnEpID09IFdSSVRFKQogCQlTQ3BudC0+
c2NfZGF0YV9kaXJlY3Rpb24gPSBETUFfVE9fREVWSUNFOwo=

------_=_NextPart_001_01C5B8D7.E73115DD--

From mboxrd@z Thu Jan  1 00:00:00 1970
From: Jiri Slaby <jirislaby@gmail.com>
Subject: Re: [RESEND][PATCH 2.6.14-rc1] scsi: sd, sr, st, and scsi_lib all
 fail to copy cmd_len to new cmd
Date: Wed, 14 Sep 2005 11:57:47 +0200
Message-ID: <4327F41B.6080008@gmail.com>
References: <CA45571DE57E1C45BF3552118BA92C9D69BDE9@WDSCEXBECL03.sc.wdc.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Return-path: <linux-scsi-owner@vger.kernel.org>
Received: from wscnet.wsc.cz ([212.80.64.118]:30599 "EHLO wscnet.wsc.cz")
	by vger.kernel.org with ESMTP id S965131AbVINJ6N (ORCPT
	<rfc822;linux-scsi@vger.kernel.org>);
	Wed, 14 Sep 2005 05:58:13 -0400
In-Reply-To: <CA45571DE57E1C45BF3552118BA92C9D69BDE9@WDSCEXBECL03.sc.wdc.com>
Sender: linux-scsi-owner@vger.kernel.org
List-Id: linux-scsi@vger.kernel.org
To: Timothy Thelin <Timothy.Thelin@wdc.com>
Cc: James Bottomley <James.Bottomley@SteelEye.com>, Mike Christie <michaelc@cs.wisc.edu>, SCSI Mailing List <linux-scsi@vger.kernel.org>, Linux Kernel <linux-kernel@vger.kernel.org>, Andrew Morton <akpm@osdl.org>

Timothy Thelin napsal(a):

>Sorry it wrapped.  It's now an attachment.
>
>This fixes an issue in scsi command initialization from a request
>where sd, sr, st, and scsi_lib all fail to copy the request's
>cmd_len to the scsi command's cmd_len field.
>
>Signed-off-by: Timothy Thelin <timothy.thelin@wdc.com>
>  
>
Mime is hell, include patch in e-mail's body, please.

thanks,

-- 
Jiri Slaby         www.fi.muni.cz/~xslaby
~\-/~      jirislaby@gmail.com      ~\-/~
241B347EC88228DE51EE A49C4A73A25004CB2A10


