diff options
Diffstat (limited to 'drivers/md/dm-ioctl.c')
-rw-r--r-- | drivers/md/dm-ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c index 966eb4b61aed..a68c650aad11 100644 --- a/drivers/md/dm-ioctl.c +++ b/drivers/md/dm-ioctl.c | |||
@@ -1847,7 +1847,7 @@ static int ctl_ioctl(uint command, struct dm_ioctl __user *user) | |||
1847 | if (r) | 1847 | if (r) |
1848 | goto out; | 1848 | goto out; |
1849 | 1849 | ||
1850 | param->data_size = sizeof(*param); | 1850 | param->data_size = offsetof(struct dm_ioctl, data); |
1851 | r = fn(param, input_param_size); | 1851 | r = fn(param, input_param_size); |
1852 | 1852 | ||
1853 | if (unlikely(param->flags & DM_BUFFER_FULL_FLAG) && | 1853 | if (unlikely(param->flags & DM_BUFFER_FULL_FLAG) && |