fd647cd1c8b4d7659cc7a4d00c08778c45e3ada7
[openwrt/staging/pepe2k.git] /
1 From 49c58cd6735d5f8f6683543ea66bb348aaa91321 Mon Sep 17 00:00:00 2001
2 From: Razvan Stefanescu <razvan.stefanescu@nxp.com>
3 Date: Fri, 18 Aug 2017 12:34:24 +0300
4 Subject: [PATCH] staging: dpaa2-evb: Update netlink parsing parameters
5
6 Accommodate extended ACL reporting addded to netlink parsing functions.
7
8 Signed-off-by: Razvan Stefanescu <razvan.stefanescu@nxp.com>
9 ---
10 drivers/staging/fsl-dpaa2/evb/evb.c | 4 ++--
11 1 file changed, 2 insertions(+), 2 deletions(-)
12
13 --- a/drivers/staging/fsl-dpaa2/evb/evb.c
14 +++ b/drivers/staging/fsl-dpaa2/evb/evb.c
15 @@ -533,7 +533,7 @@ static int evb_setlink(struct net_device
16 attr = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), IFLA_AF_SPEC);
17 if (attr) {
18 err = nla_parse_nested(tb, IFLA_BRIDGE_MAX, attr,
19 - ifla_br_policy);
20 + ifla_br_policy, NULL);
21 if (unlikely(err)) {
22 netdev_err(netdev,
23 "nla_parse_nested for br_policy err %d\n",
24 @@ -739,7 +739,7 @@ static int evb_dellink(struct net_device
25 if (!spec)
26 return 0;
27
28 - err = nla_parse_nested(tb, IFLA_BRIDGE_MAX, spec, ifla_br_policy);
29 + err = nla_parse_nested(tb, IFLA_BRIDGE_MAX, spec, ifla_br_policy, NULL);
30 if (unlikely(err))
31 return err;
32