[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20260201124352.2003313-1-zilin@seu.edu.cn>
Date: Sun, 1 Feb 2026 12:43:52 +0000
From: Zilin Guan <zilin@....edu.cn>
To: gregkh@...uxfoundation.org
Cc: andy@...nel.org,
hansg@...nel.org,
hverkuil@...nel.org,
jianhao.xu@....edu.cn,
linux-kernel@...r.kernel.org,
linux-media@...r.kernel.org,
linux-staging@...ts.linux.dev,
mchehab@...nel.org,
sakari.ailus@...ux.intel.com,
zilin@....edu.cn
Subject: Re: [PATCH] media: atomisp: Fix memory leak in atomisp_fixed_pattern_table()
On Sun, Feb 01, 2026 at 09:10:12AM +0100, Greg KH wrote:
> On Sun, Feb 01, 2026 at 07:21:07AM +0000, Zilin Guan wrote:
> > atomisp_v4l2_framebuffer_to_css_frame() allocates memory for
> > raw_black_frame, which must be released via ia_css_frame_free().
> > However, if sh_css_set_black_frame() fails, the function returns
> > immediately without performing this cleanup, leading to a memory leak.
> >
> > Fix this by assigning the error code to ret and allowing the code to
> > fall through to the ia_css_frame_free() call.
> >
> > Compile tested only. Issue found using a prototype static analysis tool
> > and code review.
>
> Please properly document this as per the rules we have for using tools
> like this.
>
> thanks,
>
> greg k-h
My apologies for the overly brief description regarding the tool and
testing. I will follow the rules and provide a V2 patch with a properly
documented commit message.
Best regards,
Zilin Guan
Powered by blists - more mailing lists