Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da784511 authored by Liam R. Howlett's avatar Liam R. Howlett Committed by Matthew Wilcox
Browse files

Use mutex_lock_killable in vfs_readdir

parent ad776537
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -30,7 +30,10 @@ int vfs_readdir(struct file *file, filldir_t filler, void *buf)
	if (res)
		goto out;

	mutex_lock(&inode->i_mutex);
	res = mutex_lock_killable(&inode->i_mutex);
	if (res)
		goto out;

	res = -ENOENT;
	if (!IS_DEADDIR(inode)) {
		res = file->f_op->readdir(file, buf, filler);