[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20210523231906.943ac0367c1c469420f8f812@kernel.org>
Date: Sun, 23 May 2021 23:19:06 +0900
From: Masami Hiramatsu <mhiramat@...nel.org>
To: Steven Rostedt <rostedt@...dmis.org>
Cc: Zhen Lei <thunder.leizhen@...wei.com>,
Masami Hiramatsu <mhiramat@...nel.org>,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/1] tools/bootconfig: Fix error return code in
apply_xbc()
On Fri, 14 May 2021 18:32:38 -0400
Steven Rostedt <rostedt@...dmis.org> wrote:
> On Sat, 8 May 2021 11:42:16 +0800
> Zhen Lei <thunder.leizhen@...wei.com> wrote:
>
> > Fix to return a negative error code from the error handling case instead
> > of 0, as done elsewhere in this function.
> >
> > Fixes: a995e6bc0524 ("tools/bootconfig: Fix to check the write failure correctly")
> > Reported-by: Hulk Robot <hulkci@...wei.com>
> > Signed-off-by: Zhen Lei <thunder.leizhen@...wei.com>
>
> Masami, care to ack this?
Oops, I missed this patch. Sorry.
This looks good to me.
Acked-by: Masami Hiramatsu <mhiramat@...nel.org>
Thank you!
>
> -- Steve
>
> > ---
> > tools/bootconfig/main.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/tools/bootconfig/main.c b/tools/bootconfig/main.c
> > index 7362bef1a368..6cd6080cac04 100644
> > --- a/tools/bootconfig/main.c
> > +++ b/tools/bootconfig/main.c
> > @@ -399,6 +399,7 @@ static int apply_xbc(const char *path, const char *xbc_path)
> > }
> > /* TODO: Ensure the @path is initramfs/initrd image */
> > if (fstat(fd, &stat) < 0) {
> > + ret = -errno;
> > pr_err("Failed to get the size of %s\n", path);
> > goto out;
> > }
>
--
Masami Hiramatsu <mhiramat@...nel.org>
Powered by blists - more mailing lists