aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/9p/vfs_dir.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/9p/vfs_dir.c b/fs/9p/vfs_dir.c
index d8a3afe4ff72..bbe00cf799fa 100644
--- a/fs/9p/vfs_dir.c
+++ b/fs/9p/vfs_dir.c
@@ -130,6 +130,8 @@ static int v9fs_dir_readdir(struct file *filp, void *dirent, filldir_t filldir)
130 rdir = (struct p9_rdir *) fid->rdir; 130 rdir = (struct p9_rdir *) fid->rdir;
131 131
132 err = mutex_lock_interruptible(&rdir->mutex); 132 err = mutex_lock_interruptible(&rdir->mutex);
133 if (err)
134 return err;
133 while (err == 0) { 135 while (err == 0) {
134 if (rdir->tail == rdir->head) { 136 if (rdir->tail == rdir->head) {
135 err = v9fs_file_readn(filp, rdir->buf, NULL, 137 err = v9fs_file_readn(filp, rdir->buf, NULL,