Re: [PATCH] media: max9286: Fix memleak in max9286_v4l2_register()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Shang,

On 2022-12-07 11:27:54 +0800, shangxiaojing wrote:
> 
> 
> On 2022/12/7 10:24, Niklas Söderlund wrote:
> > Hi Shang,
> > 
> > On 2022-12-07 09:45:07 +0800, shangxiaojing wrote:
> > > 
> > > 
> > > On 2022/12/7 5:04, Laurent Pinchart wrote:
> > > > On Tue, Dec 06, 2022 at 03:22:53PM +0100, Niklas Söderlund wrote:
> > > > > Hi Shang,
> > > > > 
> > > > > Thanks for your work.
> > > > > 
> > > > > On 2022-12-06 21:05:55 +0800, Shang XiaoJing wrote:
> > > > > > There is a kmemleak when testing the media/i2c/max9286.c with bpf mock
> > > > > > device:
> > > > > 
> > > > > Out of curiosity, what exactly is a bpf mock device?
> > > > 
> > > > I'm curious as well, is it something like
> > > > https://lwn.net/Articles/906236/ but for I2C devices ?
> > > 
> > > Yes, I'm using the tool provided by Yongjun, and now it can support for the
> > > tests of spi drivers and i2c drivers, which is still in the preliminary
> > > validation phase.
> > 
> > Is there a public repository for the MAX9286 work already available? Or
> > any other V4L2 related device?
> 
> The test of MAX9286 is build temporarily, and maybe here's no public
> repository yet. V4L2 neither.
> 
> I'm sorry but please wait for the completaion of the verification to the
> mock test tool. And then the tool will push to the community.

No problem, thanks for this sneak preview of what this work can do. Out 
of curiosity, where will this work be announced? I don't subscribe to 
many mailing lists.

> 
> > 
> > > 
> > > > Is the implementation public ?
> > > > 
> > > 
> > > Will send the test set to the community after the further verification to
> > > the tool.
> > > 
> > > By the way, here's an introduction to the tool, but now only in Chinese:
> > > 
> > > https://github.com/ChinaLinuxKernel/CLK2022/blob/main/%E5%9F%BA%E4%BA%8EeBPF%E7%9A%84%E8%AE%BE%E5%A4%87%E9%A9%B1%E5%8A%A8%E6%B5%8B%E8%AF%95%E6%A1%86%E6%9E%B6.pdf
> > 
> > Thanks this was helpful!
> > 
> > > 
> > > > 
> > > > Regardless of how this has been tested, the fix looks good.
> > > > 
> > > > Reviewed-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>
> > > > 
> > > Thanks for the review!
> > > -- 
> > > Shang XiaoJing
> > 
> 
> Thanks,
> -- 
> Shang XiaoJing

-- 
Kind Regards,
Niklas Söderlund



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux