]> git.karo-electronics.de Git - mv-sheeva.git/commit
NFS: Ensure that the nfs_client 'net' field is always set
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 19 Feb 2012 07:44:07 +0000 (08:44 +0100)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 19 Feb 2012 07:44:07 +0000 (08:44 +0100)
commit9937347a1ee6a67e450cc9e90750ce0b10abfe75
tree051923a6fd655fb0dc0be0b90f7de117575a91a2
parent0a702195234eb77c4097148285cccf7f095de9cf
NFS: Ensure that the nfs_client 'net' field is always set

Currently, the nfs_parsed_mount_data->net field is initialised in
the nfs_parse_mount_options() function, which means that it only
gets set if we're using text based mounts. The legacy binary
mount interface is therefore broken.

Fix is to initialise the ->net field in nfs_alloc_parsed_mount_data.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: Stanislav Kinsbursky <skinsbursky@parallels.com>
fs/nfs/super.c