Commit 70d919fb authored by Yi Zou's avatar Yi Zou Committed by James Bottomley

[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: default avatarYi Zou <yi.zou@intel.com>
Signed-off-by: default avatarRobert Love <robert.w.love@intel.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent 2a704521
...@@ -1679,8 +1679,7 @@ static int fc_lport_els_request(struct fc_bsg_job *job, ...@@ -1679,8 +1679,7 @@ static int fc_lport_els_request(struct fc_bsg_job *job,
char *pp; char *pp;
int len; int len;
fp = fc_frame_alloc(lport, sizeof(struct fc_frame_header) + fp = fc_frame_alloc(lport, job->request_payload.payload_len);
job->request_payload.payload_len);
if (!fp) if (!fp)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment