Searched refs:param_kernel (Results 1 – 1 of 1) sorted by relevance
1849 static int copy_params(struct dm_ioctl __user *user, struct dm_ioctl *param_kernel, in copy_params() argument1857 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()1862 param_kernel->data_size); in copy_params()1866 secure_data = param_kernel->flags & DM_SECURE_DATA_FLAG; in copy_params()1871 dmi = param_kernel; in copy_params()1883 dmi = kvmalloc(param_kernel->data_size, GFP_KERNEL | __GFP_HIGH); in copy_params()1887 if (secure_data && clear_user(user, param_kernel->data_size)) in copy_params()1895 memcpy(dmi, param_kernel, minimum_data_size); in copy_params()1898 param_kernel->data_size - minimum_data_size)) in copy_params()[all …]