Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MTM7M-0004Uz-JH for mharc-grub-devel@gnu.org; Tue, 21 Jul 2009 16:39:20 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MTM7J-0004Uo-Gg for grub-devel@gnu.org; Tue, 21 Jul 2009 16:39:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MTM7E-0004Sl-Ba for grub-devel@gnu.org; Tue, 21 Jul 2009 16:39:16 -0400 Received: from [199.232.76.173] (port=35930 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MTM7E-0004Si-4a for grub-devel@gnu.org; Tue, 21 Jul 2009 16:39:12 -0400 Received: from c60.cesmail.net ([216.154.195.49]:48672) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1MTM7D-0004Mf-M2 for grub-devel@gnu.org; Tue, 21 Jul 2009 16:39:12 -0400 Received: from unknown (HELO smtprelay2.cesmail.net) ([192.168.1.112]) by c60.cesmail.net with ESMTP; 21 Jul 2009 16:39:09 -0400 Received: from [192.168.0.22] (static-72-92-88-10.phlapa.fios.verizon.net [72.92.88.10]) by smtprelay2.cesmail.net (Postfix) with ESMTPSA id A6B5A34C6A for ; Tue, 21 Jul 2009 16:49:34 -0400 (EDT) From: Pavel Roskin To: The development of GRUB 2 In-Reply-To: <1248206568.3327.18.camel@mj> References: <80B79CE8-EF71-4B5E-BFC8-477C17756D41@gmail.com> <1248206568.3327.18.camel@mj> Content-Type: text/plain Date: Tue, 21 Jul 2009 16:39:07 -0400 Message-Id: <1248208747.3327.22.camel@mj> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 (2.26.3-1.fc11) Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: [PATCH] Call a module's init function only after the module is successfully added X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jul 2009 20:39:18 -0000 On Tue, 2009-07-21 at 16:02 -0400, Pavel Roskin wrote: > By the way, kern/dl.c have some unused functions (grub_dl_unload_all). I was wrong, I didn't check assembler files. > Also, it looks like the memory for the module information (grub_dl_t) is > allocated twice - first in grub_dl_load_core(), then in grub_dl_add() as > part of grub_dl_list_t. I was wrong here too. I'm too accustomed to Linux style where typedefs are discouraged. The list keeps a pointer, not a copy. I'll apply your patch if it passes testing. -- Regards, Pavel Roskin