diff options
| author | Trond Myklebust <[email protected]> | 2020-04-30 19:08:26 +0000 |
|---|---|---|
| committer | Trond Myklebust <[email protected]> | 2020-04-30 19:08:26 +0000 |
| commit | 9c07b75b80eeff714420fb6a4c880b284e529d0f (patch) | |
| tree | 0249c9037cd08d13e2d1c354c27ffad8636f08cb /lib/linear_ranges.c | |
| parent | Merge tag 'nfs-rdma-for-5.7-2' of git://git.linux-nfs.org/projects/anna/linux... (diff) | |
| download | kernel-9c07b75b80eeff714420fb6a4c880b284e529d0f.tar.gz kernel-9c07b75b80eeff714420fb6a4c880b284e529d0f.zip | |
NFS: Fix a race in __nfs_list_for_each_server()
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: 3c9e502b59fb ("NFS: Add a helper nfs_client_for_each_server()")
Signed-off-by: Trond Myklebust <[email protected]>
Diffstat (limited to 'lib/linear_ranges.c')
0 files changed, 0 insertions, 0 deletions
