summaryrefslogtreecommitdiffhomepage
path: root/src/device.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-11-15 20:19:20 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-11-15 20:19:20 +0100
commit6e71b31d5116a9260be12e855672196bcec618cb (patch)
tree07f4c09df2f716ea45f3ac4de67674158bf39f61 /src/device.c
parentd60ef8063c80b899b57fa1450ba48eb9d42a620f (diff)
various: nits from willy
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c
index 564d09b..5a294ec 100644
--- a/src/device.c
+++ b/src/device.c
@@ -121,8 +121,8 @@ static netdev_tx_t xmit(struct sk_buff *skb, struct net_device *dev)
read_unlock_bh(&peer->endpoint_lock);
if (unlikely(ret)) {
net_dbg_ratelimited("No valid endpoint has been configured or discovered for device\n");
- peer_put(peer);
skb_unsendable(skb, dev);
+ peer_put(peer);
return -EHOSTUNREACH;
}