From 1ac18a097c2e39009f14fd1916036e132389f9d3 Mon Sep 17 00:00:00 2001 From: Yishai Hadas Date: Thu, 20 Dec 2018 14:01:45 +0200 Subject: [PATCH] verbs: Fix execute_ioctl_fallback() bad flow [ Upstream commit b60b19225d81d086bec704df77f1cc41fcd47baf ] Fix execute_ioctl_fallback() bad flow to set the 'ret' value correctly. Fixes: e225b20f3a23 ("verbs: Add basic infrastructure for mixed write and ioctl cmds") Signed-off-by: Yishai Hadas Signed-off-by: Nicolas Morey-Chaisemartin --- libibverbs/cmd_fallback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libibverbs/cmd_fallback.c b/libibverbs/cmd_fallback.c index 7caa28db5..ba38b9170 100644 --- a/libibverbs/cmd_fallback.c +++ b/libibverbs/cmd_fallback.c @@ -63,7 +63,7 @@ enum write_fallback _check_legacy(struct ibv_command_buffer *cmdb, int *ret) } if (fallback_ioctl_only) - return ERROR; + goto not_supp; if (fallback_require_ex) return TRY_WRITE_EX;