Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NFS: Fix a race in __nfs_list_for_each_server()
commit 9c07b75 upstream. The struct nfs_server gets put on the cl_superblocks list before the server->super field has been initialised, in which case the call to nfs_sb_active() will Oops. Add a check to ensure that we skip such a list entry. Fixes: 3c9e502 ("NFS: Add a helper nfs_client_for_each_server()") Signed-off-by: Trond Myklebust <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information