drop_monitor: Use correct error code
authorIdo Schimmel <idosch@mellanox.com>
Tue, 6 Aug 2019 13:19:51 +0000 (16:19 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Aug 2019 19:37:56 +0000 (12:37 -0700)
The error code 'ENOTSUPP' is reserved for use with NFS. Use 'EOPNOTSUPP'
instead.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/drop_monitor.c

index 4ea4347f506295eaf7670e38b845ef03e596ca2b..dcb4d2aeb2a871717fce64c55dbc0f4db7927041 100644 (file)
@@ -298,7 +298,7 @@ out_unlock:
 static int net_dm_cmd_config(struct sk_buff *skb,
                        struct genl_info *info)
 {
-       return -ENOTSUPP;
+       return -EOPNOTSUPP;
 }
 
 static int net_dm_cmd_trace(struct sk_buff *skb,
@@ -311,7 +311,7 @@ static int net_dm_cmd_trace(struct sk_buff *skb,
                return set_all_monitor_traces(TRACE_OFF);
        }
 
-       return -ENOTSUPP;
+       return -EOPNOTSUPP;
 }
 
 static int dropmon_net_event(struct notifier_block *ev_block,