diff options
| author | YueHaibing <yuehaibing@huawei.com> | 2021-02-22 20:23:43 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-09 11:11:14 +0100 |
| commit | 7ef9d23bc3121be3e77ed7fbcf9d3c9ecbf7005e (patch) | |
| tree | 41f4d78637987f169296459e15b6dc80f8fabc54 /lib/dynamic_queue_limits.c | |
| parent | f767104af4965608b03f51942d4661d9c0332335 (diff) | |
IB/mlx5: Add missing error code
[ Upstream commit 3a9b3d4536e0c25bd3906a28c1f584177e49dd0f ]
Set err to -ENOMEM if kzalloc fails instead of 0.
Fixes: 759738537142 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'lib/dynamic_queue_limits.c')
0 files changed, 0 insertions, 0 deletions
