mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
[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:
parent
2a7045212c
commit
70d919fbd9
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue