Skip to content

Commit

Permalink
[SCSI] libfc: fix payload size passed to fc_frame_alloc() in fc_lport…
Browse files Browse the repository at this point in the history
…_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>
  • Loading branch information
Yi Zou authored and James Bottomley committed Dec 4, 2009
1 parent 2a70452 commit 70d919f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/scsi/libfc/fc_lport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 70d919f

Please sign in to comment.