diff options
Diffstat (limited to 'fs/afs/super.c')
-rw-r--r-- | fs/afs/super.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/afs/super.c b/fs/afs/super.c index 2753f16dd315..76828e5f8a39 100644 --- a/fs/afs/super.c +++ b/fs/afs/super.c | |||
@@ -408,17 +408,17 @@ static int afs_get_sb(struct file_system_type *fs_type, | |||
408 | deactivate_locked_super(sb); | 408 | deactivate_locked_super(sb); |
409 | goto error; | 409 | goto error; |
410 | } | 410 | } |
411 | sb->s_options = new_opts; | 411 | save_mount_options(sb, new_opts); |
412 | sb->s_flags |= MS_ACTIVE; | 412 | sb->s_flags |= MS_ACTIVE; |
413 | } else { | 413 | } else { |
414 | _debug("reuse"); | 414 | _debug("reuse"); |
415 | kfree(new_opts); | ||
416 | ASSERTCMP(sb->s_flags, &, MS_ACTIVE); | 415 | ASSERTCMP(sb->s_flags, &, MS_ACTIVE); |
417 | } | 416 | } |
418 | 417 | ||
419 | simple_set_mnt(mnt, sb); | 418 | simple_set_mnt(mnt, sb); |
420 | afs_put_volume(params.volume); | 419 | afs_put_volume(params.volume); |
421 | afs_put_cell(params.cell); | 420 | afs_put_cell(params.cell); |
421 | kfree(new_opts); | ||
422 | _leave(" = 0 [%p]", sb); | 422 | _leave(" = 0 [%p]", sb); |
423 | return 0; | 423 | return 0; |
424 | 424 | ||