|
@@ -4309,6 +4309,8 @@ static int be_ndo_bridge_setlink(struct net_device *dev, struct nlmsghdr *nlh)
|
|
return -EOPNOTSUPP;
|
|
return -EOPNOTSUPP;
|
|
|
|
|
|
br_spec = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), IFLA_AF_SPEC);
|
|
br_spec = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), IFLA_AF_SPEC);
|
|
|
|
+ if (!br_spec)
|
|
|
|
+ return -EINVAL;
|
|
|
|
|
|
nla_for_each_nested(attr, br_spec, rem) {
|
|
nla_for_each_nested(attr, br_spec, rem) {
|
|
if (nla_type(attr) != IFLA_BRIDGE_MODE)
|
|
if (nla_type(attr) != IFLA_BRIDGE_MODE)
|