Re: [PATCH net-next] net/mlx5e: Fix possible memory leak

2017-05-18 Thread David Miller
From: Wei Yongjun Date: Thu, 18 May 2017 15:34:41 + > From: Wei Yongjun > > 'encap_header' is malloced and should be freed before leaving from > the error handling cases, otherwise it will cause memory leak. > > Fixes: 232c001398ae ("net/mlx5e: Add support to neighbour update flow") > Sign

Re: [PATCH net-next] net/mlx5e: Fix possible memory leak

2017-05-18 Thread Yuval Shaia
On Thu, May 18, 2017 at 03:34:41PM +, Wei Yongjun wrote: > From: Wei Yongjun > > 'encap_header' is malloced and should be freed before leaving from > the error handling cases, otherwise it will cause memory leak. > > Fixes: 232c001398ae ("net/mlx5e: Add support to neighbour update flow") > S

[PATCH net-next] net/mlx5e: Fix possible memory leak

2017-05-18 Thread Wei Yongjun
From: Wei Yongjun 'encap_header' is malloced and should be freed before leaving from the error handling cases, otherwise it will cause memory leak. Fixes: 232c001398ae ("net/mlx5e: Add support to neighbour update flow") Signed-off-by: Wei Yongjun --- drivers/net/ethernet/mellanox/mlx5/core/en_