Searched refs:minimum_data_size (Results 1 – 1 of 1) sorted by relevance
1854 const size_t minimum_data_size = offsetof(struct dm_ioctl, data); in copy_params() local1857 if (copy_from_user(param_kernel, user, minimum_data_size)) in copy_params()1860 if (param_kernel->data_size < minimum_data_size) { in copy_params()1872 dmi->data_size = minimum_data_size; in copy_params()1895 memcpy(dmi, param_kernel, minimum_data_size); in copy_params()1897 if (copy_from_user(&dmi->data, (char __user *)user + minimum_data_size, in copy_params()1898 param_kernel->data_size - minimum_data_size)) in copy_params()