Skip to content
Commit e9cc6c23 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFS: Fix a possible Oops in fs/nfs/super.c

Sigh... commit 4584f520

 (NFS: Fix NFS
mountpoint crossing...) had a slight flaw: server can be NULL if sget()
returned an existing superblock.

Fix the fix by dereferencing s->s_fs_info.

Thanks to Coverity/Adrian Bunk and Frank Filz for spotting the bug.
(See http://bugzilla.kernel.org/show_bug.cgi?id=9647)

Also add in the same namespace Oops fix for NFSv4 in both the mountpoint
crossing case, and the referral case.

Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent b8c9a187
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment