From: Charles Manning Date: Mon, 23 Jul 2018 05:04:23 +0000 (+1200) Subject: Fix hang caused by returning with lock held X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=commitdiff_plain;h=3439fa4e60dd9799766b2c101f799ed9e565b632 Fix hang caused by returning with lock held Signed-off-by: Charles Manning --- diff --git a/yaffs_vfs_multi.c b/yaffs_vfs_multi.c index 707fcb3..de3dd75 100644 --- a/yaffs_vfs_multi.c +++ b/yaffs_vfs_multi.c @@ -1816,8 +1816,10 @@ static int yaffs_iterate(struct file *f, struct dir_context *dc) goto out; } - if (!dir_emit_dots(f, dc)) + if (!dir_emit_dots(f, dc)) { + yaffs_gross_unlock(dev); return 0; + } curoffs = 1;