Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ee6b7f1 authored by Rami Rosen's avatar Rami Rosen Committed by David S. Miller
Browse files

net: Fix typo in net/core/sock.c.



In sock_queue_rcv_skb()  (net/core/sock.c) it should be:
"Cast sk->rcvbuf ..." instead of: "Cast skb->rcvbuf ..."

Signed-off-by: default avatarRami Rosen <ramirose@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4b95ede6
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -270,7 +270,7 @@ int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
	int err = 0;
	int err = 0;
	int skb_len;
	int skb_len;


	/* Cast skb->rcvbuf to unsigned... It's pointless, but reduces
	/* Cast sk->rcvbuf to unsigned... It's pointless, but reduces
	   number of warnings when compiling with -W --ANK
	   number of warnings when compiling with -W --ANK
	 */
	 */
	if (atomic_read(&sk->sk_rmem_alloc) + skb->truesize >=
	if (atomic_read(&sk->sk_rmem_alloc) + skb->truesize >=