aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r--drivers/md/md.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 83eb78b00137..d31aa6f33a6a 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -3987,8 +3987,8 @@ static int get_bitmap_file(mddev_t * mddev, void __user * arg)
3987 if (!buf) 3987 if (!buf)
3988 goto out; 3988 goto out;
3989 3989
3990 ptr = file_path(mddev->bitmap->file, buf, sizeof(file->pathname)); 3990 ptr = d_path(&mddev->bitmap->file->f_path, buf, sizeof(file->pathname));
3991 if (!ptr) 3991 if (IS_ERR(ptr))
3992 goto out; 3992 goto out;
3993 3993
3994 strcpy(file->pathname, ptr); 3994 strcpy(file->pathname, ptr);