net: devlink: use NL_SET_ERR_MSG_MOD instead of NL_SET_ERR_MSG
authorJiri Pirko <jiri@mellanox.com>
Sat, 28 Mar 2020 18:25:29 +0000 (19:25 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Mar 2020 18:07:39 +0000 (11:07 -0700)
The rest of the devlink code sets the extack message using
NL_SET_ERR_MSG_MOD. Change the existing appearances of NL_SET_ERR_MSG
to NL_SET_ERR_MSG_MOD.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/devlink.c

index d20efdc8cc734f60224d39ee4ce33562bbf78773..5b968d2040a57423fa707d4c40e615d8dc73176a 100644 (file)
@@ -2709,7 +2709,7 @@ static struct net *devlink_netns_get(struct sk_buff *skb,
        struct net *net;
 
        if (!!netns_pid_attr + !!netns_fd_attr + !!netns_id_attr > 1) {
-               NL_SET_ERR_MSG(info->extack, "multiple netns identifying attributes specified");
+               NL_SET_ERR_MSG_MOD(info->extack, "multiple netns identifying attributes specified");
                return ERR_PTR(-EINVAL);
        }
 
@@ -2727,7 +2727,7 @@ static struct net *devlink_netns_get(struct sk_buff *skb,
                net = ERR_PTR(-EINVAL);
        }
        if (IS_ERR(net)) {
-               NL_SET_ERR_MSG(info->extack, "Unknown network namespace");
+               NL_SET_ERR_MSG_MOD(info->extack, "Unknown network namespace");
                return ERR_PTR(-EINVAL);
        }
        if (!netlink_ns_capable(skb, net->user_ns, CAP_NET_ADMIN)) {