[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <491175DA.7080300@trash.net>
Date: Wed, 05 Nov 2008 11:30:50 +0100
From: Patrick McHardy <kaber@...sh.net>
To: David Miller <davem@...emloft.net>
CC: adobriyan@...il.com, herbert@...dor.apana.org.au,
netdev@...r.kernel.org
Subject: Re: [PATCH] Fix ESP SA loading (by default)
David Miller wrote:
> From: Patrick McHardy <kaber@...sh.net>
> 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.
--
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