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

Commit a9d1958b authored by Richard Weinberger's avatar Richard Weinberger
Browse files

hostfs: hostfs_open: Reset open flags upon each retry



...otherwise we might end up with an incorrect mode mode.

Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 112a5da7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -315,6 +315,8 @@ static int hostfs_open(struct inode *ino, struct file *file)
	mode |= HOSTFS_I(ino)->mode;

retry:
	r = w = 0;

	if (mode & FMODE_READ)
		r = 1;
	if (mode & FMODE_WRITE)