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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index df92d30ca054..d429c30cd514 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -5766,7 +5766,7 @@ static int get_bitmap_file(struct mddev *mddev, void __user * arg)
5766 /* bitmap disabled, zero the first byte and copy out */ 5766 /* bitmap disabled, zero the first byte and copy out */
5767 if (!mddev->bitmap_info.file) 5767 if (!mddev->bitmap_info.file)
5768 file->pathname[0] = '\0'; 5768 file->pathname[0] = '\0';
5769 else if ((ptr = d_path(&mddev->bitmap_info.file->f_path, 5769 else if ((ptr = file_path(mddev->bitmap_info.file,
5770 file->pathname, sizeof(file->pathname))), 5770 file->pathname, sizeof(file->pathname))),
5771 IS_ERR(ptr)) 5771 IS_ERR(ptr))
5772 err = PTR_ERR(ptr); 5772 err = PTR_ERR(ptr);