Netlink policy parsing only checks that, if an attribute is present, then
its format is correct. It doesn't ensure that attributes are present, so
an explicit check is needed, which this commit adds.
static int
brc_genl_dp_result(struct sk_buff *skb, struct genl_info *info)
{
+ if (!info->attrs[BRC_GENL_A_ERR_CODE])
+ return -EINVAL;
+
dp_act_err = nla_get_u32(info->attrs[BRC_GENL_A_ERR_CODE]);
complete(&dp_act_done);