Signed-off-by: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx> --- net/can/j1939/j1939-priv.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/can/j1939/j1939-priv.h b/net/can/j1939/j1939-priv.h index 8e0da24fd43c..d04f8c2d3658 100644 --- a/net/can/j1939/j1939-priv.h +++ b/net/can/j1939/j1939-priv.h @@ -81,8 +81,10 @@ struct j1939_priv { unsigned int tp_max_packet_size; - struct list_head j1939_socks; + /* lock for j1939_socks list */ spinlock_t j1939_socks_lock; + struct list_head j1939_socks; + struct kref rx_kref; }; @@ -305,6 +307,7 @@ struct j1939_sock { atomic_t skb_pending; wait_queue_head_t waitq; + /* lock for the sk_session_queue list */ spinlock_t sk_session_queue_lock; struct list_head sk_session_queue; }; -- 2.20.1