mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 00:21:59 +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
@ -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 New Issue
Block a user