[SCSI] libfc: fix payload size passed to fc_frame_alloc() in fc_lport_els_request
authorYi Zou <yi.zou@intel.com>
Fri, 20 Nov 2009 22:54:41 +0000 (14:54 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 4 Dec 2009 18:01:54 +0000 (12:01 -0600)
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>
drivers/scsi/libfc/fc_lport.c

index c841d547c298e0756f33e767649a37f7a69298d1..bbf4152c9c69b9b37c72ac3de837ea219776e65c 100644 (file)
@@ -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;