aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/peer.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-11-02 16:07:26 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2017-11-02 20:48:06 +0100
commita51e1960de4130e80b2d31769107434045ec78e7 (patch)
tree7e49ee85449d0582664849c6d548f1785a4a30d9 /src/peer.c
parentKconfig: remove trailing whitespace (diff)
downloadwireguard-monolithic-historical-a51e1960de4130e80b2d31769107434045ec78e7.tar.xz
wireguard-monolithic-historical-a51e1960de4130e80b2d31769107434045ec78e7.zip
global: revert checkpatch.pl changes
These changes were suggested by checkpatch.pl, but actually cause big problems depending on the options. Revert.
Diffstat (limited to 'src/peer.c')
-rw-r--r--src/peer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peer.c b/src/peer.c
index 1580262..81b71d4 100644
--- a/src/peer.c
+++ b/src/peer.c
@@ -58,7 +58,7 @@ struct wireguard_peer *peer_create(struct wireguard_device *wg, const u8 public_
struct wireguard_peer *peer_get(struct wireguard_peer *peer)
{
- RCU_LOCKDEP_WARN(!rcu_read_lock_bh_held(), "Calling " __func__ " without holding the RCU read lock");
+ RCU_LOCKDEP_WARN(!rcu_read_lock_bh_held(), "Taking peer reference without holding the RCU read lock");
if (unlikely(!peer || !kref_get_unless_zero(&peer->refcount)))
return NULL;
return peer;