summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorYi Zou <yi.zou@intel.com>2009-11-20 14:54:41 -0800
committerJames Bottomley <James.Bottomley@suse.de>2009-12-04 12:01:54 -0600
commit70d919fbd9ab78f3eca5ea7bd060fefd7b508641 (patch)
tree569a8f9d127e962fbdc6df0b7ac9156534e36baf /drivers/scsi
parent2a7045212cef90337588f72f5dabf497f5f93a90 (diff)
[SCSI] libfc: fix payload size passed to fc_frame_alloc() in fc_lport_els_request
Frame header room is already incluced, just pass the length of payload. Signed-off-by: Yi Zou <yi.zou@intel.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')
-rw-r--r--drivers/scsi/libfc/fc_lport.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/libfc/fc_lport.c b/drivers/scsi/libfc/fc_lport.c
index c841d547c29..bbf4152c9c6 100644
--- a/drivers/scsi/libfc/fc_lport.c
+++ b/drivers/scsi/libfc/fc_lport.c
@@ -1679,8 +1679,7 @@ static int fc_lport_els_request(struct fc_bsg_job *job,
char *pp;
int len;
- fp = fc_frame_alloc(lport, sizeof(struct fc_frame_header) +
- job->request_payload.payload_len);
+ fp = fc_frame_alloc(lport, job->request_payload.payload_len);
if (!fp)
return -ENOMEM;