1
0
Fork 0

staging: dpaa2-evb: Update netlink parsing parameters

Accommodate extended ACL reporting addded to netlink parsing functions.

Signed-off-by: Razvan Stefanescu <razvan.stefanescu@nxp.com>
5.4-rM2-2.2.x-imx-squashed
Razvan Stefanescu 2017-08-18 12:34:24 +03:00 committed by Dong Aisheng
parent df1c1379bd
commit 7409543bed
1 changed files with 2 additions and 2 deletions

View File

@ -533,7 +533,7 @@ static int evb_setlink(struct net_device *netdev,
attr = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), IFLA_AF_SPEC);
if (attr) {
err = nla_parse_nested(tb, IFLA_BRIDGE_MAX, attr,
ifla_br_policy);
ifla_br_policy, NULL);
if (unlikely(err)) {
netdev_err(netdev,
"nla_parse_nested for br_policy err %d\n",
@ -739,7 +739,7 @@ static int evb_dellink(struct net_device *netdev,
if (!spec)
return 0;
err = nla_parse_nested(tb, IFLA_BRIDGE_MAX, spec, ifla_br_policy);
err = nla_parse_nested(tb, IFLA_BRIDGE_MAX, spec, ifla_br_policy, NULL);
if (unlikely(err))
return err;