All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] tls: Fix tls_device initialization
@ 2018-05-10 13:27 Boris Pismenny
  2018-05-10 21:54 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Boris Pismenny @ 2018-05-10 13:27 UTC (permalink / raw)
  To: davem; +Cc: netdev, borisp, davejwatson

Add sg table initialization to fix a BUG_ON encountered when enabling
CONFIG_DEBUG_SG.

Signed-off-by: Boris Pismenny <borisp@mellanox.com>
---
 net/tls/tls_device.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/tls/tls_device.c b/net/tls/tls_device.c
index ac45d62..a7a8f8e 100644
--- a/net/tls/tls_device.c
+++ b/net/tls/tls_device.c
@@ -604,6 +604,8 @@ int tls_set_device_offload(struct sock *sk, struct tls_context *ctx)
 	INIT_LIST_HEAD(&offload_ctx->records_list);
 	list_add_tail(&start_marker_record->list, &offload_ctx->records_list);
 	spin_lock_init(&offload_ctx->lock);
+	sg_init_table(offload_ctx->sg_tx_data,
+		      ARRAY_SIZE(offload_ctx->sg_tx_data));
 
 	clean_acked_data_enable(inet_csk(sk), &tls_icsk_clean_acked);
 	ctx->push_pending_record = tls_device_push_pending_record;
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net-next] tls: Fix tls_device initialization
  2018-05-10 13:27 [PATCH net-next] tls: Fix tls_device initialization Boris Pismenny
@ 2018-05-10 21:54 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2018-05-10 21:54 UTC (permalink / raw)
  To: borisp; +Cc: netdev, davejwatson

From: Boris Pismenny <borisp@mellanox.com>
Date: Thu, 10 May 2018 16:27:25 +0300

> Add sg table initialization to fix a BUG_ON encountered when enabling
> CONFIG_DEBUG_SG.
> 
> Signed-off-by: Boris Pismenny <borisp@mellanox.com>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-05-10 21:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-10 13:27 [PATCH net-next] tls: Fix tls_device initialization Boris Pismenny
2018-05-10 21:54 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.