Avoid passing uninitialized wbuf_dwork to cancel_delayed_work_sync during jffs2 sync.
PATCH 1/1 Avoid passing uninitialized wbuf_dwork to cancel_delayed_work_sync during jffs2 sync.
--- fs/jffs2/super.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
fs/jffs2/super.c +2 -1
@@ -101,7 +101,8 @@ static int jffs2_sync_fs(struct super_block *sb, int wait)struct jffs2_sb_info *c =JFFS2_SB_INFO (sb);#ifdef CONFIG_JFFS2_FS_WRITEBUFFER -cancel_delayed_work_sync (&c->wbuf_dwork); +if (c->wbuf !=NULL ) +cancel_delayed_work_sync (&c->wbuf_dwork);#endif mutex_lock (&c->alloc_sem);
Signature · 1 line
2.11.0