]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
NFS: Fix typo in nomigration mount option
authorJoshua Watt <jpewhacker@gmail.com>
Tue, 7 Nov 2017 22:25:47 +0000 (16:25 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Nov 2017 08:35:50 +0000 (08:35 +0000)
commit f02fee227e5f21981152850744a6084ff3fa94ee upstream.

The option was incorrectly masking off all other options.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/super.c

index 368d9395d2e7f064c9539ff01d9353659ad5197e..dbdc2d2f91cf5c650accaed7ceef021f58e2126e 100644 (file)
@@ -1321,7 +1321,7 @@ static int nfs_parse_mount_options(char *raw,
                        mnt->options |= NFS_OPTION_MIGRATION;
                        break;
                case Opt_nomigration:
-                       mnt->options &= NFS_OPTION_MIGRATION;
+                       mnt->options &= ~NFS_OPTION_MIGRATION;
                        break;
 
                /*