Skip to content
Commit 86b3b62b authored by YueHaibing's avatar YueHaibing Committed by Greg Kroah-Hartman
Browse files

IB/mlx5: Add missing error code

[ Upstream commit 3a9b3d45 ]

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

Fixes: 75973853

 ("IB/mlx5: Enable subscription for device events over DEVX")
Link: https://lore.kernel.org/r/20210222122343.19720-1-yuehaibing@huawei.com
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Acked-by: default avatarLeon Romanovsky <leonro@nvidia.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 809ef266
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