diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-07-18 09:27:41 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-20 15:12:45 -0400 |
commit | eecd6857709e08781e41f3eb0e0c669d9ca07d87 (patch) | |
tree | 875b527b9d811b135ac2f991c1d2695e8cc4e457 /net/tls/tls_device.c | |
parent | a3eed83a18954eb9433a8193c520619e21a028da (diff) |
tls: Fix copy-paste error in tls_device_reencrypt
It seems that the proper structure to use in this particular
case is *skb_iter* instead of skb.
Addresses-Coverity-ID: 1471906 ("Copy-paste error")
Fixes: 4799ac81e52a ("tls: Add rx inline crypto offload")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tls/tls_device.c')
-rw-r--r-- | net/tls/tls_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tls/tls_device.c b/net/tls/tls_device.c index 4995d84d228d..1e968d238adf 100644 --- a/net/tls/tls_device.c +++ b/net/tls/tls_device.c | |||
@@ -615,7 +615,7 @@ static int tls_device_reencrypt(struct sock *sk, struct sk_buff *skb) | |||
615 | TLS_CIPHER_AES_GCM_128_TAG_SIZE); | 615 | TLS_CIPHER_AES_GCM_128_TAG_SIZE); |
616 | 616 | ||
617 | if (skb_iter->decrypted) | 617 | if (skb_iter->decrypted) |
618 | skb_store_bits(skb, offset, buf, copy); | 618 | skb_store_bits(skb_iter, offset, buf, copy); |
619 | 619 | ||
620 | offset += copy; | 620 | offset += copy; |
621 | buf += copy; | 621 | buf += copy; |