aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index e01637240eeb..f9327bbaf466 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -2657,7 +2657,7 @@ static void nfs_fix_devname(const struct path *path, struct vfsmount *mnt)
2657 devname = nfs_path(path->mnt->mnt_devname, 2657 devname = nfs_path(path->mnt->mnt_devname,
2658 path->mnt->mnt_root, path->dentry, 2658 path->mnt->mnt_root, path->dentry,
2659 page, PAGE_SIZE); 2659 page, PAGE_SIZE);
2660 if (devname == NULL) 2660 if (IS_ERR(devname))
2661 goto out_freepage; 2661 goto out_freepage;
2662 tmp = kstrdup(devname, GFP_KERNEL); 2662 tmp = kstrdup(devname, GFP_KERNEL);
2663 if (tmp == NULL) 2663 if (tmp == NULL)