From mboxrd@z Thu Jan 1 00:00:00 1970 From: Haggai Eran Subject: Re: [PATCH ib-next 2/3] IB/core: IB/core: Allow legacy verbs through extended interfaces Date: Mon, 9 Nov 2015 08:48:36 +0200 Message-ID: <564041C4.1090303@mellanox.com> References: <1446745208-17733-1-git-send-email-eli@mellanox.com> <1446745208-17733-3-git-send-email-eli@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Matan Barak , Eli Cohen Cc: Doug Ledford , Jason Gunthorpe , Yann Droneaud , linux-rdma , Or Gerlitz , Eran Ben Elisha , matanbe-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org List-Id: linux-rdma@vger.kernel.org On 08/11/2015 17:04, Matan Barak wrote: >> @@ -704,6 +719,10 @@ static ssize_t ib_uverbs_write(struct file *filp, const char __user *buf, >> > } >> > >> > command = hdr.command & IB_USER_VERBS_CMD_COMMAND_MASK; >> > + if (verify_command_mask(ib_dev, command)) { >> > + ret = -EINVAL; > Why did you replace ENOSYS with EINVAL? I think ENOSYS is meant only to represent a system call number that isn't supported. There was a change in checkpatch that now warns about it [1]. I'm not sure the intention was to fix existing uses though. Haggai [1] http://www.gossamer-threads.com/lists/linux/kernel/2148343 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html