projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a70452
)
[SCSI] libfc: fix payload size passed to fc_frame_alloc() in fc_lport_els_request
author
Yi Zou
<yi.zou@intel.com>
Fri, 20 Nov 2009 22:54:41 +0000
(14:54 -0800)
committer
James 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/scsi/libfc/fc_lport.c
b/drivers/scsi/libfc/fc_lport.c
index c841d547c298e0756f33e767649a37f7a69298d1..bbf4152c9c69b9b37c72ac3de837ea219776e65c 100644
(file)
--- 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,
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;