Skip to content

Commit 66d58f0

Browse files
edumazetdavem330
authored andcommitted
net: use sk_forward_alloc_get() in sk_get_meminfo()
inet_sk_diag_fill() has been changed to use sk_forward_alloc_get(), but sk_get_meminfo() was forgotten. Fixes: 292e607 ("net: introduce sk_forward_alloc_get()") Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 82ba0ff commit 66d58f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/core/sock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3743,7 +3743,7 @@ void sk_get_meminfo(const struct sock *sk, u32 *mem)
37433743
mem[SK_MEMINFO_RCVBUF] = READ_ONCE(sk->sk_rcvbuf);
37443744
mem[SK_MEMINFO_WMEM_ALLOC] = sk_wmem_alloc_get(sk);
37453745
mem[SK_MEMINFO_SNDBUF] = READ_ONCE(sk->sk_sndbuf);
3746-
mem[SK_MEMINFO_FWD_ALLOC] = sk->sk_forward_alloc;
3746+
mem[SK_MEMINFO_FWD_ALLOC] = sk_forward_alloc_get(sk);
37473747
mem[SK_MEMINFO_WMEM_QUEUED] = READ_ONCE(sk->sk_wmem_queued);
37483748
mem[SK_MEMINFO_OPTMEM] = atomic_read(&sk->sk_omem_alloc);
37493749
mem[SK_MEMINFO_BACKLOG] = READ_ONCE(sk->sk_backlog.len);

0 commit comments

Comments
 (0)