diff options
author | Insu Yun <wuninsu@gmail.com> | 2015-10-15 19:24:09 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-16 09:31:38 +0300 |
commit | 175f8d6746aa4b1dac5ccf576bcbc5488ff21a36 (patch) | |
tree | 69a80424c96f25683797ffdc17cb2e58addaf547 /firmware/cxgb3 | |
parent | e87eb4051efe76b35d0a297db772f5964a001544 (diff) | |
download | linux-175f8d6746aa4b1dac5ccf576bcbc5488ff21a36.tar.xz |
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: Insu Yun <wuninsu@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'firmware/cxgb3')
0 files changed, 0 insertions, 0 deletions