From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: check_entry & module_refcount Date: Mon, 04 Sep 2006 15:40:22 +0200 Message-ID: <44FC2CC6.8000105@trash.net> References: <200609041617.39950.dim@openvz.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org Return-path: To: Dmitry Mishin In-Reply-To: <200609041617.39950.dim@openvz.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org Dmitry Mishin wrote: > Hello, all! > > Does anybody know why there is no module_put() on the error way after failed > standard_check() call in the check_entry() function? Previous xt_find_target() > calls try_module_get() for all targets, without special checks for > standard_target. The standard target doesn't have a module reference, so the counter isn't really increased. While rules are present the tables have references to ip_tables anyway, so its not needed.