Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204255
b: refs/heads/master
c: f90377a
h: refs/heads/master
i:
  204253: 080a1a6
  204251: 61e3b24
  204247: 98e6d00
  204239: 420cd57
  204223: ec203f4
v: v3
  • Loading branch information
Joe Eykholt authored and James Bottomley committed Jul 28, 2010
1 parent d26d0af commit 17969c6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 42e9041467cf5fd33501b91b27e26807c259c896
refs/heads/master: f90377abcab2e305450ee76a0f9042907560c5d8
2 changes: 1 addition & 1 deletion trunk/drivers/scsi/libfc/fc_rport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 2 additions & 0 deletions trunk/include/scsi/libfc.h
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,7 @@ struct fc_disc {
* @mfs: The maximum Fibre Channel payload size
* @max_retry_count: The maximum retry attempts
* @max_rport_retry_count: The maximum remote port retry attempts
* @rport_priv_size: Size needed by driver after struct fc_rport_priv
* @lro_xid: The maximum XID for LRO
* @lso_max: The maximum large offload send size
* @fcts: FC-4 type mask
Expand Down Expand Up @@ -848,6 +849,7 @@ struct fc_lport {
u32 mfs;
u8 max_retry_count;
u8 max_rport_retry_count;
u16 rport_priv_size;
u16 link_speed;
u16 link_supported_speeds;
u16 lro_xid;
Expand Down

0 comments on commit 17969c6

Please sign in to comment.