Skip to content
Commit 825f8b0b authored by Colin Ian King's avatar Colin Ian King Committed by Saeed Mahameed
Browse files

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: ff7ea04a ("net/mlx5e: Fix potential null pointer dereference")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
parent 547848af
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment