aboutsummaryrefslogtreecommitdiffstats
path: root/net/ieee802154/nl-phy.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ieee802154/nl-phy.c')
-rw-r--r--net/ieee802154/nl-phy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ieee802154/nl-phy.c b/net/ieee802154/nl-phy.c
index 7baf98b14611..1b9d25f6e898 100644
--- a/net/ieee802154/nl-phy.c
+++ b/net/ieee802154/nl-phy.c
@@ -65,7 +65,8 @@ static int ieee802154_nl_fill_phy(struct sk_buff *msg, u32 portid,
65 goto nla_put_failure; 65 goto nla_put_failure;
66 mutex_unlock(&phy->pib_lock); 66 mutex_unlock(&phy->pib_lock);
67 kfree(buf); 67 kfree(buf);
68 return genlmsg_end(msg, hdr); 68 genlmsg_end(msg, hdr);
69 return 0;
69 70
70nla_put_failure: 71nla_put_failure:
71 mutex_unlock(&phy->pib_lock); 72 mutex_unlock(&phy->pib_lock);