[ofa-general] Re: [PATCH] Fixed memory leak in drivers/net/mlx4/main.c

Jack Morgenstein jackm at dev.mellanox.co.il
Mon Jun 8 07:53:44 PDT 2009


OFED 1.5 is still based on 2.6.30-rc2.  If this patch in is 2.6.30-rc8,
we will grab it from the mainstream within the next couple of days (when we rebase to that RC).
(For that reason, I'm not checking this in as a patch right now).

-Jack

On Monday 08 June 2009 11:52, Nicolas Morey-Chaisemartin wrote:
> 
> Signed-off-by: Nicolas Morey-Chaisemartin <nicolas.morey-chaisemartin at ext.bull.net>
> ---
> This patch made it into linux mainstream but seems to have bit lost in the ofed 1.5 branch.
>  drivers/net/mlx4/main.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/net/mlx4/main.c b/drivers/net/mlx4/main.c
> index 102bac9..30bea96 100644
> --- a/drivers/net/mlx4/main.c
> +++ b/drivers/net/mlx4/main.c
> @@ -976,7 +976,7 @@ static void mlx4_enable_msi_x(struct mlx4_dev *dev)
>  				nreq = err;
>  				goto retry;
>  			}
> -
> +			kfree(entries);
>  			goto no_msi;
>  		}
>  



More information about the general mailing list