public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix template size calculation in transport attributes
@ 2004-03-29 17:22 Martin Hicks
  0 siblings, 0 replies; only message in thread
From: Martin Hicks @ 2004-03-29 17:22 UTC (permalink / raw)
  To: James Bottomley; +Cc: linux-scsi

[-- Attachment #1: Type: text/plain, Size: 198 bytes --]


Hi,

This small patch fixes the template size calculation in
{spi,fc}_attach_transport().

Thanks
mh

-- 
Martin Hicks                Wild Open Source Inc.
mort@wildopensource.com     613-266-2296

[-- Attachment #2: transport-attrs-template-size.patch --]
[-- Type: text/plain, Size: 1674 bytes --]

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.1663  -> 1.1664 
#	drivers/scsi/scsi_transport_fc.c	1.2     -> 1.3    
#	drivers/scsi/scsi_transport_spi.c	1.5     -> 1.6    
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 04/03/29	mort@tomahawk.engr.sgi.com	1.1664
# Fix a bug in the SPI and FC transport attributes code.
# The calculation of template size was wrong.
# --------------------------------------------
#
diff -Nru a/drivers/scsi/scsi_transport_fc.c b/drivers/scsi/scsi_transport_fc.c
--- a/drivers/scsi/scsi_transport_fc.c	Mon Mar 29 09:19:12 2004
+++ b/drivers/scsi/scsi_transport_fc.c	Mon Mar 29 09:19:12 2004
@@ -159,7 +159,7 @@
 	i->t.attrs = &i->attrs[0];
 	i->t.class = &fc_transport_class;
 	i->t.setup = &fc_setup_transport_attrs;
-	i->t.size = sizeof(struct fc_transport_attrs) - sizeof(unsigned long);
+	i->t.size = sizeof(struct fc_transport_attrs);
 	i->f = ft;
 
 	SETUP_ATTRIBUTE_RD(port_id);
diff -Nru a/drivers/scsi/scsi_transport_spi.c b/drivers/scsi/scsi_transport_spi.c
--- a/drivers/scsi/scsi_transport_spi.c	Mon Mar 29 09:19:12 2004
+++ b/drivers/scsi/scsi_transport_spi.c	Mon Mar 29 09:19:12 2004
@@ -632,7 +632,7 @@
 	i->t.attrs = &i->attrs[0];
 	i->t.class = &spi_transport_class;
 	i->t.setup = &spi_setup_transport_attrs;
-	i->t.size = sizeof(struct spi_transport_attrs) - sizeof(unsigned long);
+	i->t.size = sizeof(struct spi_transport_attrs);
 	i->f = ft;
 
 	SETUP_ATTRIBUTE(period);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-03-29 17:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-29 17:22 [PATCH] Fix template size calculation in transport attributes Martin Hicks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox