diff options
author | David S. Miller <davem@davemloft.net> | 2017-07-03 11:31:22 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-03 11:31:22 +0200 |
commit | b2c9c5df6665be7f27381ce5185b830accdb10e7 (patch) | |
tree | 6ce569b385269c98247141f29e5885f1f69bf2ef /net/iucv/af_iucv.c | |
parent | ctcm_fsms: Convert skb->user accesses to refcount_t (diff) | |
download | linux-b2c9c5df6665be7f27381ce5185b830accdb10e7.tar.xz linux-b2c9c5df6665be7f27381ce5185b830accdb10e7.zip |
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/af_iucv.c')
-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); } |