From: David Ahern <dsah...@kernel.org> Date: Thu, 4 Oct 2018 14:33:55 -0700
> @@ -162,6 +162,28 @@ static int br_mdb_fill_info(struct sk_buff *skb, struct > netlink_callback *cb, > return err; > } > > +static int br_mdb_valid_dump_req(const struct nlmsghdr *nlh, > + struct netlink_ext_ack *extack) > +{ > + struct br_port_msg *bpm; > + > + if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*bpm))) { > + NL_SET_ERR_MSG(extack, "Invalid header"); > + return -EINVAL; > + } > + if (bpm->ifindex) { 'bpm' is never initialized.