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.
Showing the changes to include/scsi (1 of 2 files). Show all
Unified · Split
| @@ -39,6 +39,7 @@ struct iscsi_segment { · 38 unmodified lines | ||
| 39 | 39 | unsigned int total_copied; |
| 40 | 40 | |
| 41 | 41 | struct hash_desc *hash; |
| 42 | + unsigned char padbuf[ISCSI_PAD_LEN]; | |
| 42 | 43 | unsigned char recv_digest[ISCSI_DIGEST_SIZE]; |
| 43 | 44 | unsigned char digest[ISCSI_DIGEST_SIZE]; |
| 44 | 45 | unsigned int digest_len; |