Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40971
b: refs/heads/master
c: 534284a
h: refs/heads/master
i:
  40969: 5aa6507
  40967: 600a522
v: v3
  • Loading branch information
Pete Wyckoff authored and James Bottomley committed Nov 10, 2006
1 parent 3593052 commit 2843600
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 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: 7ca63cb470f23a197f187afe936d4bf806197d6e
refs/heads/master: 534284a09b3f58cd92acd0652b7267ee142932ba
15 changes: 4 additions & 11 deletions trunk/drivers/scsi/iscsi_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1816,21 +1816,14 @@ iscsi_tcp_conn_destroy(struct iscsi_cls_conn *cls_conn)
{
struct iscsi_conn *conn = cls_conn->dd_data;
struct iscsi_tcp_conn *tcp_conn = conn->dd_data;
int digest = 0;

if (conn->hdrdgst_en || conn->datadgst_en)
digest = 1;

iscsi_tcp_release_conn(conn);
iscsi_conn_teardown(cls_conn);

/* now free tcp_conn */
if (digest) {
if (tcp_conn->tx_hash.tfm)
crypto_free_hash(tcp_conn->tx_hash.tfm);
if (tcp_conn->rx_hash.tfm)
crypto_free_hash(tcp_conn->rx_hash.tfm);
}
if (tcp_conn->tx_hash.tfm)
crypto_free_hash(tcp_conn->tx_hash.tfm);
if (tcp_conn->rx_hash.tfm)
crypto_free_hash(tcp_conn->rx_hash.tfm);

kfree(tcp_conn);
}
Expand Down

0 comments on commit 2843600

Please sign in to comment.