diff options
-rw-r--r-- | drivers/md/md.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 20ca80b7dc20..373ab92e367b 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -2087,7 +2087,7 @@ static int get_array_info(mddev_t * mddev, void __user * arg) | |||
2087 | return 0; | 2087 | return 0; |
2088 | } | 2088 | } |
2089 | 2089 | ||
2090 | static int get_bitmap_file(mddev_t * mddev, void * arg) | 2090 | static int get_bitmap_file(mddev_t * mddev, void __user * arg) |
2091 | { | 2091 | { |
2092 | mdu_bitmap_file_t *file = NULL; /* too big for stack allocation */ | 2092 | mdu_bitmap_file_t *file = NULL; /* too big for stack allocation */ |
2093 | char *ptr, *buf = NULL; | 2093 | char *ptr, *buf = NULL; |
@@ -2781,7 +2781,7 @@ static int md_ioctl(struct inode *inode, struct file *file, | |||
2781 | goto done_unlock; | 2781 | goto done_unlock; |
2782 | 2782 | ||
2783 | case GET_BITMAP_FILE: | 2783 | case GET_BITMAP_FILE: |
2784 | err = get_bitmap_file(mddev, (void *)arg); | 2784 | err = get_bitmap_file(mddev, argp); |
2785 | goto done_unlock; | 2785 | goto done_unlock; |
2786 | 2786 | ||
2787 | case GET_DISK_INFO: | 2787 | case GET_DISK_INFO: |