aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2022-11-21 19:22:04 +0800
committerSaeed Mahameed <saeedm@nvidia.com>2022-11-24 00:03:21 -0800
commit3f5769a074c13d8f08455e40586600419e02a880 (patch)
treee3096929b66f2e9bdbc3ce4a57b253c9e3c8764c /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentnet/mlx5: E-switch, Fix duplicate lag creation (diff)
downloadwireguard-linux-3f5769a074c13d8f08455e40586600419e02a880.tar.xz
wireguard-linux-3f5769a074c13d8f08455e40586600419e02a880.zip
net/mlx5: Fix uninitialized variable bug in outlen_write()
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> Reviewed-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions