summaryrefslogtreecommitdiffhomepage
path: root/src/device.c
diff options
context:
space:
mode:
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;
}