diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/ieee802154/nl802154.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/ieee802154/nl802154.c b/net/ieee802154/nl802154.c index 3f89c0abdab1..51110a6d3674 100644 --- a/net/ieee802154/nl802154.c +++ b/net/ieee802154/nl802154.c | |||
@@ -753,10 +753,8 @@ static int nl802154_new_interface(struct sk_buff *skb, struct genl_info *info) | |||
753 | return -EINVAL; | 753 | return -EINVAL; |
754 | } | 754 | } |
755 | 755 | ||
756 | /* TODO add nla_get_le64 to netlink */ | ||
757 | if (info->attrs[NL802154_ATTR_EXTENDED_ADDR]) | 756 | if (info->attrs[NL802154_ATTR_EXTENDED_ADDR]) |
758 | extended_addr = (__force __le64)nla_get_u64( | 757 | extended_addr = nla_get_le64(info->attrs[NL802154_ATTR_EXTENDED_ADDR]); |
759 | info->attrs[NL802154_ATTR_EXTENDED_ADDR]); | ||
760 | 758 | ||
761 | if (!rdev->ops->add_virtual_intf) | 759 | if (!rdev->ops->add_virtual_intf) |
762 | return -EOPNOTSUPP; | 760 | return -EOPNOTSUPP; |