From: Ido Schimmel Date: Tue, 6 Aug 2019 13:19:51 +0000 (+0300) Subject: drop_monitor: Use correct error code X-Git-Tag: for-linus-2019-09-27~91^2~296^2~5 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=2230a7ef5198;p=linux-2.6-block.git drop_monitor: Use correct error code The error code 'ENOTSUPP' is reserved for use with NFS. Use 'EOPNOTSUPP' instead. Signed-off-by: Ido Schimmel Signed-off-by: David S. Miller --- diff --git a/net/core/drop_monitor.c b/net/core/drop_monitor.c index 4ea4347f5062..dcb4d2aeb2a8 100644 --- a/net/core/drop_monitor.c +++ b/net/core/drop_monitor.c @@ -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,