]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Add missing error code
authorYueHaibing <yuehaibing@huawei.com>
Mon, 22 Feb 2021 12:23:43 +0000 (20:23 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 1 Mar 2021 18:49:09 +0000 (14:49 -0400)
commit8574892fde682abb906a2c4d9a5342a428ecc2a4
treed2c983d43c8f266ae7f1892b13f5c07c1dfae1bd
parentd8ec1f4456358438eca3fdba9bfd99b3545dd3bf
IB/mlx5: Add missing error code

Set err to -ENOMEM if kzalloc fails instead of 0.

Fixes: 9ea5beba79d1 ("IB/mlx5: Enable subscription for device events over DEVX")
Link: https://lore.kernel.org/r/20210222122343.19720-1-yuehaibing@huawei.com
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/devx.c