From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [PATCH] Fix ESP SA loading (by default) Date: Wed, 05 Nov 2008 11:30:50 +0100 Message-ID: <491175DA.7080300@trash.net> References: <20081105095428.GA4584@x200.localdomain> <20081105.015552.33573006.davem@davemloft.net> <49116F66.4030305@trash.net> <20081105.022619.151487044.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: adobriyan@gmail.com, herbert@gondor.apana.org.au, netdev@vger.kernel.org To: David Miller Return-path: Received: from stinky.trash.net ([213.144.137.162]:34215 "EHLO stinky.trash.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754736AbYKEKa5 (ORCPT ); Wed, 5 Nov 2008 05:30:57 -0500 In-Reply-To: <20081105.022619.151487044.davem@davemloft.net> Sender: netdev-owner@vger.kernel.org List-ID: David Miller wrote: > From: Patrick McHardy > Date: Wed, 05 Nov 2008 11:03:18 +0100 > >> David Miller wrote: >>> About the rmmod thing, we can do something similar to how >>> we handle nesting of irq_regs(). Ie. there are things that >>> push and pop the stack of ->error_desc. rmmod operations >>> could be one of those things >> Alternatively we could simply strdup the error message (or copy it >> to a reserved area to avoid running into memory allocation errors). >> That avoids having to mess with foreign task structs when >> unloading modules. > > Since the error message is "const char *" I don't see why > you'd need to strdup() it ever, just the pointer is fine. > > Well, I guess we could run into problems with module unloading > and the strings being from that module hmmm... Yes, thats what I thought Alexey was referring to.