Re: [PATCH net] net/mlx5: Fix uninitialized variable bug in outlen_write()

From: Saeed Mahameed
Date: Wed Nov 23 2022 - 00:02:29 EST


On 21 Nov 19:22, YueHaibing wrote:
If sscanf() return 0, outlen is uninitialized and used in kzalloc(),
this is unexpected. We should return -EINVAL if the string is invalid.

Fixes: e126ba97dba9 ("mlx5: Add driver for Mellanox Connect-IB adapters")
Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>


applied to net-mlx5, thanks !