Files
linux/drivers
YueHaibing 2cb84ff349 net/mlx5: Fix uninitialized variable bug in outlen_write()
[ Upstream commit 3f5769a074 ]

If sscanf() return 0, outlen is uninitialized and used in kzalloc(),
this is unexpected. We should return -EINVAL if the string is invalid.

Fixes: e126ba97db ("mlx5: Add driver for Mellanox Connect-IB adapters")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-08 11:23:55 +01:00
..
2021-03-04 11:38:21 +01:00
2022-05-09 09:04:56 +02:00
2021-11-18 14:03:51 +01:00
2022-04-13 21:00:55 +02:00
2022-08-25 11:38:14 +02:00