diff --git a/net/tls/tls_main.c b/net/tls/tls_main.c
index 74ed1e7af3d9da0f4074cb4ee5d7ed705f89c78b..20cd93be6236e03e2fbdbfc9e44cbb12d3261c84 100644
--- a/net/tls/tls_main.c
+++ b/net/tls/tls_main.c
@@ -135,6 +135,7 @@ int tls_push_sg(struct sock *sk,
 			offset -= sg->offset;
 			ctx->partially_sent_offset = offset;
 			ctx->partially_sent_record = (void *)sg;
+			ctx->in_tcp_sendpages = false;
 			return ret;
 		}