[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20130426.232608.1636389400751636869.davem@davemloft.net>
Date: Fri, 26 Apr 2013 23:26:08 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: weiyj.lk@...il.com
Cc: pablo@...filter.org, shemminger@...tta.com, ebiederm@...ssion.com,
bhutchings@...arflare.com, pshelar@...ira.com,
yongjun_wei@...ndmicro.com.cn, netdev@...r.kernel.org
Subject: Re: [PATCH -next] genetlink: fix possible memory leak in
genl_family_rcv_msg()
From: Wei Yongjun <weiyj.lk@...il.com>
Date: Sat, 27 Apr 2013 09:34:16 +0800
> From: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>
>
> 'attrbuf' is malloced in genl_family_rcv_msg() when family->maxattr &&
> family->parallel_ops, thus should be freed before leaving from the error
> handling cases, otherwise it will cause memory leak.
>
> Introduced by commit def3117493eafd9dfa1f809d861e0031b2cc8a07
> (genl: Allow concurrent genl callbacks.)
>
> Signed-off-by: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>
Applied, thanks.
--
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