From: Gustavo A. R. Silva Date: Wed, 18 Jul 2018 13:27:41 +0000 (-0500) Subject: tls: Fix copy-paste error in tls_device_reencrypt X-Git-Tag: v4.19-rc1~140^2~313 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=eecd6857709e08781e41f3eb0e0c669d9ca07d87;p=uclinux-h8%2Flinux.git 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 Signed-off-by: David S. Miller --- 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) TLS_CIPHER_AES_GCM_128_TAG_SIZE); if (skb_iter->decrypted) - skb_store_bits(skb, offset, buf, copy); + skb_store_bits(skb_iter, offset, buf, copy); offset += copy; buf += copy;