aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/libfc/fc_lport.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/libfc/fc_lport.c b/drivers/scsi/libfc/fc_lport.c
index c841d547c298..bbf4152c9c69 100644
--- a/drivers/scsi/libfc/fc_lport.c
+++ b/drivers/scsi/libfc/fc_lport.c
@@ -1679,8 +1679,7 @@ static int fc_lport_els_request(struct fc_bsg_job *job,
1679 char *pp; 1679 char *pp;
1680 int len; 1680 int len;
1681 1681
1682 fp = fc_frame_alloc(lport, sizeof(struct fc_frame_header) + 1682 fp = fc_frame_alloc(lport, job->request_payload.payload_len);
1683 job->request_payload.payload_len);
1684 if (!fp) 1683 if (!fp)
1685 return -ENOMEM; 1684 return -ENOMEM;
1686 1685