Skip to content

Commit b2c9c5d

Browse files
committed
iucv: Convert sk_wmem_alloc accesses to refcount_t.
Reported-by: kbuild test robot <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent bba5850 commit b2c9c5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/iucv/af_iucv.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ static void iucv_sock_destruct(struct sock *sk)
402402
}
403403

404404
WARN_ON(atomic_read(&sk->sk_rmem_alloc));
405-
WARN_ON(atomic_read(&sk->sk_wmem_alloc));
405+
WARN_ON(refcount_read(&sk->sk_wmem_alloc));
406406
WARN_ON(sk->sk_wmem_queued);
407407
WARN_ON(sk->sk_forward_alloc);
408408
}

0 commit comments

Comments
 (0)