Fix template size calculation in transport attributes
PATCH 1/1 Fix template size calculation in transport attributes
Hi,
This small patch fixes the template size calculation in {spi,fc}_attach_transport().
Thanks
mh
Signature · 2 lines
Martin Hicks Wild Open Source Inc. [email protected] 613-266-2296
# 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 [email protected] 1.1664
# Fix a bug in the SPI and FC transport attributes code.
# The calculation of template size was wrong.
# --------------------------------------------
#
drivers/scsi/scsi_transport_fc.c +1 -1
@@ -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);
drivers/scsi/scsi_transport_spi.c +1 -1
@@ -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);