Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262340
b: refs/heads/master
c: 76f1928
h: refs/heads/master
v: v3
  • Loading branch information
Nicholas Bellinger committed Jul 27, 2011
1 parent 347291d commit 98145e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 8f50c7f5d63b0e4a29f6f96e8cfaca782e0c458d
refs/heads/master: 76f1928e8831961a692459924cfac0ca1b0d303a
6 changes: 3 additions & 3 deletions trunk/drivers/target/iscsi/iscsi_target.c
Original file line number Diff line number Diff line change
Expand Up @@ -1857,7 +1857,7 @@ static int iscsit_handle_text_cmd(
char *text_ptr, *text_in;
int cmdsn_ret, niov = 0, rx_got, rx_size;
u32 checksum = 0, data_crc = 0, payload_length;
u32 padding = 0, text_length = 0;
u32 padding = 0, pad_bytes = 0, text_length = 0;
struct iscsi_cmd *cmd;
struct kvec iov[3];
struct iscsi_text *hdr;
Expand Down Expand Up @@ -1896,7 +1896,7 @@ static int iscsit_handle_text_cmd(

padding = ((-payload_length) & 3);
if (padding != 0) {
iov[niov].iov_base = cmd->pad_bytes;
iov[niov].iov_base = &pad_bytes;
iov[niov++].iov_len = padding;
rx_size += padding;
pr_debug("Receiving %u additional bytes"
Expand All @@ -1917,7 +1917,7 @@ static int iscsit_handle_text_cmd(
if (conn->conn_ops->DataDigest) {
iscsit_do_crypto_hash_buf(&conn->conn_rx_hash,
text_in, text_length,
padding, cmd->pad_bytes,
padding, (u8 *)&pad_bytes,
(u8 *)&data_crc);

if (checksum != data_crc) {
Expand Down

0 comments on commit 98145e3

Please sign in to comment.