[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <cvgagwuga3dj6jsn4dfmfaklt5fhdkqbij2wxc46ci6nr4dmky@l2daxik5cqes>
Date: Tue, 23 Sep 2025 15:23:52 -0700
From: Josh Poimboeuf <jpoimboe@...nel.org>
To: Alexandre Chartre <alexandre.chartre@...cle.com>
Cc: linux-kernel@...r.kernel.org, mingo@...nel.org, peterz@...radead.org
Subject: Re: [RFC PATCH v2 02/17] objtool: Create disassembly context
On Thu, Jun 19, 2025 at 04:56:44PM +0200, Alexandre Chartre wrote:
> +struct disas_context *disas_context_create(struct objtool_file *file)
> +{
> + struct disas_context *dctx;
> +
> + dctx = malloc(sizeof(*dctx));
> + if (!dctx) {
> + ERROR_GLIBC("failed to allocate disassembly context");
> + return NULL;
> + }
Since this isn't a fatal error, it should probably be WARN_GLIBC() or so.
--
Josh
Powered by blists - more mailing lists