[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20120802.002107.240245942153879823.davem@davemloft.net>
Date: Thu, 02 Aug 2012 00:21:07 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: jj@...osbits.net
Cc: eilong@...adcom.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] bnx2x: fix mem leak when command is unknown
From: Jesper Juhl <jj@...osbits.net>
Date: Tue, 31 Jul 2012 23:39:37 +0200 (CEST)
> In bnx2x_mcast_enqueue_cmd() we'll leak the memory allocated to
> 'new_cmd' if we hit the deafault case of the 'switch (cmd)'.
> Add a 'kfree(new_cmd)' to that case to avoid the leak.
>
> Signed-off-by: Jesper Juhl <jj@...osbits.net>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists