diff options
author | David S. Miller <davem@davemloft.net> | 2017-07-03 02:31:22 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-03 02:31:22 -0700 |
commit | b2c9c5df6665be7f27381ce5185b830accdb10e7 (patch) | |
tree | 6ce569b385269c98247141f29e5885f1f69bf2ef /net/iucv | |
parent | bba5850c8b11ce849434434a7f77fb59ac7248e7 (diff) | |
download | linux-b2c9c5df6665be7f27381ce5185b830accdb10e7.tar.bz2 |
iucv: Convert sk_wmem_alloc accesses to refcount_t.
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/iucv')
-rw-r--r-- | net/iucv/af_iucv.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |