summaryrefslogtreecommitdiff
path: root/include/linux/mlx5/fs.h
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-10-06 21:12:43 +0300
committerSaeed Mahameed <saeedm@nvidia.com>2020-10-13 01:37:44 +0300
commit825f8b0b17a89774fe62ca5b79823185ba0dc849 (patch)
tree1880dbc28c3fcdebc719fe14b6dc31065586212d /include/linux/mlx5/fs.h
parent547848af58e3eb5a0d8b0a5e6433042f111788e2 (diff)
downloadlinux-825f8b0b17a89774fe62ca5b79823185ba0dc849.tar.xz
net/mlx5: Fix uininitialized pointer read on pointer attr
Currently the error exit path err_free kfree's attr. In the case where flow and parse_attr failed to be allocated this return path will free the uninitialized pointer attr, which is not correct. In the other case where attr fails to allocate attr does not need to be freed. So in both error exits via err_free attr should not be freed, so remove it. Addresses-Coverity: ("Uninitialized pointer read") Fixes: ff7ea04ad579 ("net/mlx5e: Fix potential null pointer dereference") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'include/linux/mlx5/fs.h')
0 files changed, 0 insertions, 0 deletions