Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1679939

[PATCH 1/2] net, iucv: fixing error from refcount conversion

From Elena Reshetova <elena.reshetova@intel.com>
Newsgroups linux.kernel
Subject [PATCH 1/2] net, iucv: fixing error from refcount conversion
Date 2017-07-03 14:00 +0200
Message-ID <tZ8bg-R2-19@gated-at.bofh.it> (permalink)
References <tZ8bf-R2-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Fixing "net/iucv/af_iucv.c:405:22: error: passing
argument 1 of 'atomic_read' from incompatible pointer type"
---
 net/iucv/af_iucv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/iucv/af_iucv.c b/net/iucv/af_iucv.c
index ac033e4..1485331 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);
 }
-- 
2.7.4

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/2] Fixes for errors reported by 0day on net-next tree Elena Reshetova <elena.reshetova@intel.com> - 2017-07-03 14:00 +0200
  [PATCH 1/2] net, iucv: fixing error from refcount conversion Elena Reshetova <elena.reshetova@intel.com> - 2017-07-03 14:00 +0200
  Re: [PATCH 0/2] Fixes for errors reported by 0day on net-next tree David Miller <davem@davemloft.net> - 2017-07-03 15:00 +0200

csiph-web