Re: [PATCH] jffs2: fix double-free of f->target in jffs2_alloc_inode()

From: Deepanshu Kartikey

Date: Sat Sep 12 2026 - 23:25:17 EST


On Sat, Sep 12, 2026 at 10:27 PM Richard Weinberger <richard@xxxxxx> wrote:
>
> Am Sat, Sep 12, 2026, 10:00 schrieb Deepanshu Kartikey <kartikey406@xxxxxxxxx>:
> > On Sat, Sep 12, 2026 at 12:28 PM Richard Weinberger <richard@xxxxxx> wrote:
> > I feel the patch you are pointing at fixes a different kind of issue ?
>
> Well, different symptoms of a common root cause.
>
> Thanks,
> //richard

Totally understood this. But it is good to have a defensive check so that
there is no dangling pointer. It will prevent future [UAF, double free bugs].

Thanks

Deepanshu