Skip to content
Commit 175f8d67 authored by Insu Yun's avatar Insu Yun Committed by David S. Miller
Browse files

mlx4: corretly check failed allocation



When allocation fails, mlx4_alloc_cmd_mailbox returns -ENOMEM.
Since there is no case that mlx4_alloc_cmd_mailbox returns NULL,
it needs to be checked by IS_ERR, not IS_ERR_OR_NULL

Signed-off-by: default avatarInsu Yun <wuninsu@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e87eb405
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment