On Fri, Sep 28, 2018 at 9:14 AM Bartosz Golaszewski <[email protected]> wrote: > Provide a resource managed version of kstrdup_const(). This variant > internally calls devm_kstrdup() on pointers that are outside of > .rodata section and returns the string as is otherwise. > > Make devm_kfree() check if the passed pointer doesn't point to .rodata > and if so - don't actually destroy the resource. > > Signed-off-by: Bartosz Golaszewski <[email protected]> > Reviewed-by: Bjorn Andersson <[email protected]> > Acked-by: Mike Rapoport <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]> Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds

