Re: [PATCH] firmware: tegra: bpmp: Fix freeing uninitialized pointers

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

 



Thank you for your feedback!

You can see from commit 90ca6956d383 ("ice: Fix freeing uninitialized
pointers") or any other usages of __free.
Initialization is a necessary and standard way to protect your memory.

Additionally, the proper freeing function should be of_node_put()
rather than device_node().
In commit 8812b8689ee6 ("firmware: tegra: bpmp: Use scoped device node
handling to simplify error paths"),
of_node_put() was originally set to free the memory.

And as for the tag mistakes. We are sorry and will correct that later.

Best,
Zichen

On Tue, Oct 1, 2024 at 2:20 PM Krzysztof Kozlowski
<krzysztof.kozlowski@xxxxxxxxxx> wrote:
>
> On 01/10/2024 21:09, Gax-c wrote:
> > Like commit 90ca6956d383 ("ice: Fix freeing uninitialized pointers"),
> > automatically cleaned up pointers need to be initialized before exiting their scope.
>
> So where is the early exit?
>
> > Additionally, device_node() should be replaced with a proper freeing
> > free function of_node_put() in this case.
> > And the pointer need to be initialized to NULL before any return statement.
>
> And it is already.
>
> This looks really bogus.
>
> >
> > Fixes: 8812b8689ee6 ("firmware: tegra: bpmp: Use scoped device node handling to simplify error paths")
> > Signed-off-by: Zichen Xie <zichenxie0106@xxxxxxxxx>
> > Reported-by: Zichen Xie <zichenxie0106@xxxxxxxxx>
>
> Hm? How is this possible? You are writing this patch, aren't you? This
> is bogus tag.
>
> > Reported-by: Zijie Zhao <zzjas98@xxxxxxxxx>
> > Reported-by: Chenyuan Yang <chenyuan0y@xxxxxxxxx>
>
> Where are the reports? Why three people are listed here?
>
> This is an open source work and public collaboration. The "Reported-by"
> usually means that the issue was reported to us, in some way, usually in
> public. Can we see the report?
> Otherwise adding non-public, non-verifiable reports is useless and
> clutters our report-credit-system.
>
>
> Best regards,
> Krzysztof
>
>
>





[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux