提交 70d919fb 编写于 作者: Y Yi Zou 提交者: 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: NYi Zou <yi.zou@intel.com>
Signed-off-by: NRobert Love <robert.w.love@intel.com>
Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
上级 2a704521
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册