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-Url: https://git.stricted.de/?a=commitdiff_plain;h=b2c9c5df6665be7f27381ce5185b830accdb10e7;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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); }