History

[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.

Karen Xie committed 17 years ago

Commit 28568301 parent 2f4c7822 files · +2 −2Browse files

Showing the changes to include/scsi (1 of 2 files). Show all

Unified · Split

include/scsi/libiscsi_tcp.h+1−0
@@ -39,6 +39,7 @@ struct iscsi_segment { · 38 unmodified lines
3939 unsigned int total_copied;
4040
4141 struct hash_desc *hash;
42+ unsigned char padbuf[ISCSI_PAD_LEN];
4243 unsigned char recv_digest[ISCSI_DIGEST_SIZE];
4344 unsigned char digest[ISCSI_DIGEST_SIZE];
4445 unsigned int digest_len;