Skip to content

Commit

Permalink
verbs: Fix execute_ioctl_fallback() bad flow
Browse files Browse the repository at this point in the history
[ Upstream commit b60b192 ]

Fix execute_ioctl_fallback() bad flow to set the 'ret' value correctly.

Fixes: e225b20 ("verbs: Add basic infrastructure for mixed write and ioctl cmds")
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
  • Loading branch information
yishaih authored and nmorey committed Jan 24, 2019
1 parent 41d7294 commit 1ac18a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libibverbs/cmd_fallback.c
Expand Up @@ -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;
Expand Down

0 comments on commit 1ac18a0

Please sign in to comment.