hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/net/llc/llc_conn.c
....@@ -284,8 +284,8 @@
284284 /**
285285 * llc_conn_remove_acked_pdus - Removes acknowledged pdus from tx queue
286286 * @sk: active connection
287
- * nr: NR
288
- * how_many_unacked: size of pdu_unack_q after removing acked pdus
287
+ * @nr: NR
288
+ * @how_many_unacked: size of pdu_unack_q after removing acked pdus
289289 *
290290 * Removes acknowledged pdus from transmit queue (pdu_unack_q). Returns
291291 * the number of pdus that removed from queue.
....@@ -813,7 +813,7 @@
813813 else {
814814 dprintk("%s: adding to backlog...\n", __func__);
815815 llc_set_backlog_type(skb, LLC_PACKET);
816
- if (sk_add_backlog(sk, skb, sk->sk_rcvbuf))
816
+ if (sk_add_backlog(sk, skb, READ_ONCE(sk->sk_rcvbuf)))
817817 goto drop_unlock;
818818 }
819819 out:
....@@ -906,6 +906,7 @@
906906
907907 /**
908908 * llc_sk_alloc - Allocates LLC sock
909
+ * @net: network namespace
909910 * @family: upper layer protocol family
910911 * @priority: for allocation (%GFP_KERNEL, %GFP_ATOMIC, etc)
911912 *
....@@ -951,7 +952,7 @@
951952
952953 /**
953954 * llc_sk_free - Frees a LLC socket
954
- * @sk - socket to free
955
+ * @sk: - socket to free
955956 *
956957 * Frees a LLC socket
957958 */