Re: [PATCH] mlx4: corretly check failed allocation

From: David Miller
Date: Fri Oct 16 2015 - 02:15:58 EST


From: Insu Yun <wuninsu@xxxxxxxxx>
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 <wuninsu@xxxxxxxxx>

Applied to net-next, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/