[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>
This commit is contained in:
Yi Zou 2009-11-20 14:54:41 -08:00 committed by James Bottomley
parent 2a7045212c
commit 70d919fbd9

View File

@ -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;