diff options
author | Joe Eykholt <jeykholt@cisco.com> | 2010-07-20 15:19:42 -0700 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-07-28 09:05:49 -0500 |
commit | f90377abcab2e305450ee76a0f9042907560c5d8 (patch) | |
tree | 6ed2f707f8c15162bcca4a7f44a3a97ba09172ad /drivers/scsi/libfc/fc_rport.c | |
parent | 42e9041467cf5fd33501b91b27e26807c259c896 (diff) | |
download | kernel_goldelico_gta04-f90377abcab2e305450ee76a0f9042907560c5d8.zip kernel_goldelico_gta04-f90377abcab2e305450ee76a0f9042907560c5d8.tar.gz kernel_goldelico_gta04-f90377abcab2e305450ee76a0f9042907560c5d8.tar.bz2 |
[SCSI] libfc: provide space for LLD after remote port structure
Add pre-zeroed space after the allocation for fc_rport_priv
for use by the lower-level driver.
This is primarily for VN2VN FIP mode, but could be used in
other ways someday.
The space required is specified in lport->rport_priv_size.
Signed-off-by: Joe Eykholt <jeykholt@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/libfc/fc_rport.c')
-rw-r--r-- | drivers/scsi/libfc/fc_rport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libfc/fc_rport.c b/drivers/scsi/libfc/fc_rport.c index 6b56973..6d68482 100644 --- a/drivers/scsi/libfc/fc_rport.c +++ b/drivers/scsi/libfc/fc_rport.c @@ -127,7 +127,7 @@ static struct fc_rport_priv *fc_rport_create(struct fc_lport *lport, if (rdata) return rdata; - rdata = kzalloc(sizeof(*rdata), GFP_KERNEL); + rdata = kzalloc(sizeof(*rdata) + lport->rport_priv_size, GFP_KERNEL); if (!rdata) return NULL; |