[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHk-=wigVUWvHaJKZNW+VTKWLQxCvOpoysuXQTYjO6b7VZ3GJg@mail.gmail.com>
Date: Tue, 14 Sep 2021 18:13:51 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Masami Hiramatsu <mhiramat@...nel.org>
Cc: Steven Rostedt <rostedt@...dmis.org>,
Mike Rapoport <rppt@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
LKML <linux-kernel@...r.kernel.org>,
Ingo Molnar <mingo@...nel.org>, Linux-MM <linux-mm@...ck.org>,
Vlastimil Babka <vbabka@...e.cz>
Subject: Re: [PATCH v2 4/5] bootconfig: Free copied bootconfig data after boot
On Tue, Sep 14, 2021 at 5:53 PM Masami Hiramatsu <mhiramat@...nel.org> wrote:
>
> Free copied bootconfig data after booting kernel because that
> data will not be used anymore.
Don't do this.
You have already passed in that 'copy' to the xbc code, and
xbc_destroy_all() should just free it.
Don't add new pointless variables to keep track of state that somebody
else already keeps track of.
Linus
Powered by blists - more mailing lists