Messages in this thread | | | Date | Tue, 22 Nov 2022 21:01:55 -0800 | From | Saeed Mahameed <> | Subject | Re: [PATCH net] net/mlx5: Fix uninitialized variable bug in outlen_write() |
| |
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@huawei.com> >
applied to net-mlx5, thanks !
| |