Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -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;