Re: [PATCH 6/8] param: use free hook for charp
From: Takashi Iwai
Date: Fri Oct 30 2009 - 06:14:48 EST
Hi Rusty,
sorry for the delayed reply; I finally got back to work now.
At Fri, 23 Oct 2009 00:51:29 +1030,
Rusty Russell wrote:
>
>
> Instead of using a "I kmalloced this" flag, we keep track of the kmalloced
> strings and use that list to check if we need to kfree (in practice, the
> list is very short).
>
> This means that kparams can be const again.
>
> Signed-off-by: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
This is indeed a simple solution! I like it.
thanks,
Takashi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/