Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762775AbYCUWqb (ORCPT ); Fri, 21 Mar 2008 18:46:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1762297AbYCUWpt (ORCPT ); Fri, 21 Mar 2008 18:45:49 -0400 Received: from 216-99-217-87.dsl.aracnet.com ([216.99.217.87]:34674 "EHLO sous-sol.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762187AbYCUWps (ORCPT ); Fri, 21 Mar 2008 18:45:48 -0400 Message-Id: <20080321224355.272885001@sous-sol.org> References: <20080321224250.144333319@sous-sol.org> User-Agent: quilt/0.46-1 Date: Fri, 21 Mar 2008 15:43:17 -0700 From: Chris Wright To: linux-kernel@vger.kernel.org, stable@kernel.org, jejb@kernel.org Cc: Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , Chris Wedgwood , Michael Krufky , Chuck Ebbert , Domenico Andreoli , torvalds@linux-foundation.org, akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk, FUJITA Tomonori , FUJITA Tomonori , Mark Salyzyn , James Bottomley , Greg Kroah-Hartman Subject: [patch 27/76] SCSI ips: fix data buffer accessors conversion bug Content-Disposition: inline; filename=scsi-ips-fix-data-buffer-accessors-conversion-bug.patch Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1232 Lines: 37 -stable review patch. If anyone has any objections, please let us know. --------------------- From: FUJITA Tomonori This fixes a bug that can't handle a passthru command with more than two sg entries. Big thanks to Tim Pepper for debugging the problem. Signed-off-by: FUJITA Tomonori Acked-by: Mark Salyzyn Signed-off-by: James Bottomley Signed-off-by: Chris Wright Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/ips.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/scsi/ips.c +++ b/drivers/scsi/ips.c @@ -1580,7 +1580,7 @@ ips_make_passthru(ips_ha_t *ha, struct s METHOD_TRACE("ips_make_passthru", 1); scsi_for_each_sg(SC, sg, scsi_sg_count(SC), i) - length += sg[i].length; + length += sg->length; if (length < sizeof (ips_passthru_t)) { /* wrong size */ -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/