From: J. Bruce Fields Date: Fri, 20 Aug 2010 22:06:26 +0000 (-0400) Subject: nfsd4: typo fix in find_any_file X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=18608ad49cffa430cfd0b4e027dedfe3114f916e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git nfsd4: typo fix in find_any_file Signed-off-by: J. Bruce Fields --- diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h index 7731a75971dd..84579c86b13d 100644 --- a/fs/nfsd/state.h +++ b/fs/nfsd/state.h @@ -379,7 +379,7 @@ static inline struct file *find_any_file(struct nfs4_file *f) { if (f->fi_fds[O_RDWR]) return f->fi_fds[O_RDWR]; - else if (f->fi_fds[O_RDWR]) + else if (f->fi_fds[O_WRONLY]) return f->fi_fds[O_WRONLY]; else return f->fi_fds[O_RDONLY];