Re: [PATCH] jffs2: fix use after free in jffs2_sum_write_data()

2021-01-04 Thread Nathan Chancellor
On Wed, Dec 30, 2020 at 06:56:04AM -0800, t...@redhat.com wrote: > From: Tom Rix > > clang static analysis reports this problem > > fs/jffs2/summary.c:794:31: warning: Use of memory after it is freed > c->summary->sum_list_head = temp->u.next; >

[PATCH] jffs2: fix use after free in jffs2_sum_write_data()

2020-12-30 Thread trix
From: Tom Rix clang static analysis reports this problem fs/jffs2/summary.c:794:31: warning: Use of memory after it is freed c->summary->sum_list_head = temp->u.next; ^~~~ In jffs2_sum_write_data(), in a loop summary data is