From c0daaf1597bf88d425149e7e2207e3c29b32d5c8 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Tue, 28 Jan 2020 05:42:17 +0300 Subject: ipoe_mod: set type of IPOE_ATTR_HWADDR to NLA_BINARY --- drivers/ipoe/ipoe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ipoe/ipoe.c b/drivers/ipoe/ipoe.c index 6ac6d77a..32c9a52f 100644 --- a/drivers/ipoe/ipoe.c +++ b/drivers/ipoe/ipoe.c @@ -1745,7 +1745,7 @@ static const struct nla_policy ipoe_nl_policy[IPOE_ATTR_MAX + 1] = { [IPOE_ATTR_MASK] = { .type = NLA_U32, }, [IPOE_ATTR_MODE] = { .type = NLA_U8, }, [IPOE_ATTR_GW_ADDR] = { .type = NLA_U32, }, - [IPOE_ATTR_HWADDR] = { .len = ETH_ALEN, }, + [IPOE_ATTR_HWADDR] = { .type = NLA_BINARY, .len = ETH_ALEN, }, [IPOE_ATTR_IFINDEX] = { .type = NLA_U32, }, [IPOE_ATTR_LINK_IFINDEX]= { .type = NLA_U32, }, }; -- cgit v1.2.3