summaryrefslogtreecommitdiffstats
path: root/include/scsi/libiscsi_tcp.h
diff options
context:
space:
mode:
authorKaren Xie2009-01-11 04:06:07 +0100
committerJames Bottomley2009-01-13 17:41:34 +0100
commit2856830bd395fbc2f0c5327effe71fb025dd262d (patch)
tree213afd49b7705e653f6273db1183befde67068ed /include/scsi/libiscsi_tcp.h
parent[SCSI] mpt fusion: Add Firmware debug support (diff)
downloadkernel-qcow2-linux-2856830bd395fbc2f0c5327effe71fb025dd262d.tar.gz
kernel-qcow2-linux-2856830bd395fbc2f0c5327effe71fb025dd262d.tar.xz
kernel-qcow2-linux-2856830bd395fbc2f0c5327effe71fb025dd262d.zip
[SCSI] iscsi_tcp: make padbuf non-static
virt_to_page() call should not be used on kernel text and data addresses. virt_to_page() is used by sg_init_one(). So change padbuf to be allocated within iscsi_segment. Signed-off-by: Karen Xie <kxie@chelsio.com> Acked-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'include/scsi/libiscsi_tcp.h')
-rw-r--r--include/scsi/libiscsi_tcp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/scsi/libiscsi_tcp.h b/include/scsi/libiscsi_tcp.h
index 83e32f6d7859..9e3182e659db 100644
--- a/include/scsi/libiscsi_tcp.h
+++ b/include/scsi/libiscsi_tcp.h
@@ -39,6 +39,7 @@ struct iscsi_segment {
unsigned int total_copied;
struct hash_desc *hash;
+ unsigned char padbuf[ISCSI_PAD_LEN];
unsigned char recv_digest[ISCSI_DIGEST_SIZE];
unsigned char digest[ISCSI_DIGEST_SIZE];
unsigned int digest_len;