git: 802271fddbf4 - stable/13 - fusefs: fix a dead store in fuse_vnop_advlock

Alan Somers asomers at FreeBSD.org
Thu Apr 8 02:17:30 UTC 2021


The branch stable/13 has been updated by asomers:

URL: https://cgit.FreeBSD.org/src/commit/?id=802271fddbf4f1cc99aa880e11a4b651b440d1bb

commit 802271fddbf4f1cc99aa880e11a4b651b440d1bb
Author:     Alan Somers <asomers at FreeBSD.org>
AuthorDate: 2021-03-20 01:38:57 +0000
Commit:     Alan Somers <asomers at FreeBSD.org>
CommitDate: 2021-04-08 02:15:46 +0000

    fusefs: fix a dead store in fuse_vnop_advlock
    
    kevans actually caught this in the original review and I fixed it, but
    then I committed an older copy of the branch.  Whoops.
    
    Reported by:    kevans
    Differential Revision:  https://reviews.freebsd.org/D29031
    
    (cherry picked from commit 9c5aac8f2e84ca4bbdf82514302c08c0453ec59b)
---
 sys/fs/fuse/fuse_vnops.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sys/fs/fuse/fuse_vnops.c b/sys/fs/fuse/fuse_vnops.c
index cdbc42f5adf4..a51c1b15e7f0 100644
--- a/sys/fs/fuse/fuse_vnops.c
+++ b/sys/fs/fuse/fuse_vnops.c
@@ -444,7 +444,6 @@ fuse_vnop_advlock(struct vop_advlock_args *ap)
 		break;
 	case F_UNLCK:
 		op = FUSE_SETLK;
-		flags |= F_UNLCK;
 		break;
 	default:
 		return EINVAL;


More information about the dev-commits-src-all mailing list