[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4F8A7A15.4060908@mellanox.com>
Date: Sun, 15 Apr 2012 10:34:45 +0300
From: Or Gerlitz <ogerlitz@...lanox.com>
To: Jesper Juhl <jj@...osbits.net>, Roland Dreier <roland@...nel.org>
CC: <linux-kernel@...r.kernel.org>, <linux-rdma@...r.kernel.org>,
"David S. Miller" <davem@...emloft.net>
Subject: Re: [PATCH] IB: mlx4: Fix mem leaks in ib_link_query_port()
On 4/12/2012 12:43 AM, Jesper Juhl wrote:
> If, in ib_link_query_port(), the call to mlx4_MAD_IFC() fails we will
> currently do 'return err;' which will leak 'in_mad' and 'out_mad' that
> we previously allocated. I believe we should instead do 'goto out;'
> where we'll properly free the memory we previously allocated.
Acked-by: Or Gerlitz <ogerlitz@...lanox.com>
Roland, could you push that?
Or.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists