Skip to content

Commit

Permalink
verbs: enable query IBV_EVENT_WQ_FATAL event string
Browse files Browse the repository at this point in the history
[ Upstream commit 019cd6f ]

The commit mentioned in Fixes line added IBV_EVENT_WQ_FATAL string,
but didn't update the array limits checks. This led to the situation
where despite having right string declared, the "unknown" string was
returned instead.

Fixes: cf266d7 ("verbs: Add missing string decode for IBV_EVENT_WQ_FATAL")
Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
  • Loading branch information
changchengx authored and nmorey committed Nov 5, 2021
1 parent 953fe48 commit e1bbc09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libibverbs/enum_strs.c
Expand Up @@ -91,7 +91,7 @@ const char *ibv_event_type_str(enum ibv_event_type event)
[IBV_EVENT_WQ_FATAL] = "WQ fatal"
};

if (event < IBV_EVENT_CQ_ERR || event > IBV_EVENT_GID_CHANGE)
if (event < IBV_EVENT_CQ_ERR || event > IBV_EVENT_WQ_FATAL)
return "unknown";

return event_type_str[event];
Expand Down

0 comments on commit e1bbc09

Please sign in to comment.