Commit 86b3b62
IB/mlx5: Add missing error code
[ Upstream commit 3a9b3d4 ]
Set err to -ENOMEM if kzalloc fails instead of 0.
Fixes: 7597385 ("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>1 parent 809ef26 commit 86b3b62
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2022 | 2022 | | |
2023 | 2023 | | |
2024 | 2024 | | |
2025 | | - | |
| 2025 | + | |
| 2026 | + | |
2026 | 2027 | | |
| 2028 | + | |
2027 | 2029 | | |
2028 | 2030 | | |
2029 | 2031 | | |
| |||
0 commit comments