Re: [PATCH][next] net/mlx5: Fix uininitialized pointer read on pointer attr

2020-10-06 Thread Saeed Mahameed
On Tue, 2020-10-06 at 19:12 +0100, Colin King wrote: > From: Colin Ian King > > 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 >

[PATCH][next] net/mlx5: Fix uininitialized pointer read on pointer attr

2020-10-06 Thread Colin King
From: Colin Ian King 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.