From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Berg Subject: Re: [PATCH] nl80211: [PATCH] nl80211: fix possible memory leak nl80211_connect() Date: Tue, 04 Sep 2012 18:07:07 +0200 Message-ID: <1346774827.3737.34.camel@jlt4.sipsolutions.net> References: (sfid-20120902_154106_606560_49157A83) Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: linville@tuxdriver.com, davem@davemloft.net, yongjun_wei@trendmicro.com.cn, linux-wireless@vger.kernel.org, netdev@vger.kernel.org To: Wei Yongjun Return-path: Received: from he.sipsolutions.net ([78.46.109.217]:41641 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751102Ab2IDQGn (ORCPT ); Tue, 4 Sep 2012 12:06:43 -0400 In-Reply-To: (sfid-20120902_154106_606560_49157A83) Sender: netdev-owner@vger.kernel.org List-ID: On Sun, 2012-09-02 at 21:41 +0800, Wei Yongjun wrote: > From: Wei Yongjun > > connkeys is malloced in nl80211_parse_connkeys() and should > be freed in the error handling case, otherwise it will cause > memory leak. > > spatch with a semantic match is used to found this problem. > (http://coccinelle.lip6.fr/) Applied, thanks. I fixed the subject for you :) johannes