diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs/super.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index 0d1bc61d0b68..22c49c02897d 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c | |||
@@ -1006,12 +1006,14 @@ static int nfs_parse_mount_options(char *raw, | |||
1006 | string = match_strdup(args); | 1006 | string = match_strdup(args); |
1007 | if (string == NULL) | 1007 | if (string == NULL) |
1008 | goto out_nomem; | 1008 | goto out_nomem; |
1009 | kfree(mnt->client_address); | ||
1009 | mnt->client_address = string; | 1010 | mnt->client_address = string; |
1010 | break; | 1011 | break; |
1011 | case Opt_mounthost: | 1012 | case Opt_mounthost: |
1012 | string = match_strdup(args); | 1013 | string = match_strdup(args); |
1013 | if (string == NULL) | 1014 | if (string == NULL) |
1014 | goto out_nomem; | 1015 | goto out_nomem; |
1016 | kfree(mnt->mount_server.hostname); | ||
1015 | mnt->mount_server.hostname = string; | 1017 | mnt->mount_server.hostname = string; |
1016 | break; | 1018 | break; |
1017 | case Opt_mountaddr: | 1019 | case Opt_mountaddr: |