Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 129832
b: refs/heads/master
c: 2856830
h: refs/heads/master
v: v3
  • Loading branch information
Karen Xie authored and James Bottomley committed Jan 13, 2009
1 parent 36dfb75 commit 144fa4f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2f4c782c2e06fbaef2ac2b6b7abd796b96abd98b
refs/heads/master: 2856830bd395fbc2f0c5327effe71fb025dd262d
3 changes: 1 addition & 2 deletions trunk/drivers/scsi/libiscsi_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ int iscsi_tcp_segment_done(struct iscsi_tcp_conn *tcp_conn,
struct iscsi_segment *segment, int recv,
unsigned copied)
{
static unsigned char padbuf[ISCSI_PAD_LEN];
struct scatterlist sg;
unsigned int pad;

Expand Down Expand Up @@ -233,7 +232,7 @@ int iscsi_tcp_segment_done(struct iscsi_tcp_conn *tcp_conn,
debug_tcp("consume %d pad bytes\n", pad);
segment->total_size += pad;
segment->size = pad;
segment->data = padbuf;
segment->data = segment->padbuf;
return 0;
}
}
Expand Down
1 change: 1 addition & 0 deletions trunk/include/scsi/libiscsi_tcp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 144fa4f

Please sign in to comment.