Thread (2 messages) 2 messages, 2 authors, 2015-10-16

Re: [PATCH] mlx4: corretly check failed allocation

From: David Miller <davem@davemloft.net>
Date: 2015-10-16 06:15:56
Also in: lkml

From: Insu Yun <redacted>
Date: Thu, 15 Oct 2015 12:24:09 -0400
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 <redacted>
Applied to net-next, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help