[NETLINK]: Make use of NLA_STRING/NLA_NUL_STRING attribute validation
[sfrench/cifs-2.6.git] / net / decnet / dn_rules.c
index 63ad63dfd252ceff5dbb1eebdcff9585ce3264e9..3e0c882c90bfa28a662540e21c97c333a17d4bc6 100644 (file)
@@ -112,7 +112,7 @@ errout:
 }
 
 static struct nla_policy dn_fib_rule_policy[FRA_MAX+1] __read_mostly = {
-       [FRA_IFNAME]    = { .type = NLA_STRING },
+       [FRA_IFNAME]    = { .type = NLA_STRING, .len = IFNAMSIZ - 1 },
        [FRA_PRIORITY]  = { .type = NLA_U32 },
        [FRA_SRC]       = { .type = NLA_U16 },
        [FRA_DST]       = { .type = NLA_U16 },