From: David S. Miller Date: Mon, 3 Jul 2017 09:31:22 +0000 (-0700) Subject: iucv: Convert sk_wmem_alloc accesses to refcount_t. X-Git-Tag: v4.13-rc1~157^2~25 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=b2c9c5df6665be7f27381ce5185b830accdb10e7;p=users%2Fjedix%2Flinux-maple.git iucv: Convert sk_wmem_alloc accesses to refcount_t. Reported-by: kbuild test robot Signed-off-by: David S. Miller --- diff --git a/net/iucv/af_iucv.c b/net/iucv/af_iucv.c index ac033e413bc5..148533169b1d 100644 --- a/net/iucv/af_iucv.c +++ b/net/iucv/af_iucv.c @@ -402,7 +402,7 @@ static void iucv_sock_destruct(struct sock *sk) } WARN_ON(atomic_read(&sk->sk_rmem_alloc)); - WARN_ON(atomic_read(&sk->sk_wmem_alloc)); + WARN_ON(refcount_read(&sk->sk_wmem_alloc)); WARN_ON(sk->sk_wmem_queued); WARN_ON(sk->sk_forward_alloc); }