File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -216,8 +216,7 @@ static int enable_verity(struct file *filp,
216
216
217
217
/* Get the salt if the user provided one */
218
218
if (arg -> salt_size &&
219
- copy_from_user (desc -> salt ,
220
- (const u8 __user * )(uintptr_t )arg -> salt_ptr ,
219
+ copy_from_user (desc -> salt , u64_to_user_ptr (arg -> salt_ptr ),
221
220
arg -> salt_size )) {
222
221
err = - EFAULT ;
223
222
goto out ;
@@ -226,8 +225,7 @@ static int enable_verity(struct file *filp,
226
225
227
226
/* Get the signature if the user provided one */
228
227
if (arg -> sig_size &&
229
- copy_from_user (desc -> signature ,
230
- (const u8 __user * )(uintptr_t )arg -> sig_ptr ,
228
+ copy_from_user (desc -> signature , u64_to_user_ptr (arg -> sig_ptr ),
231
229
arg -> sig_size )) {
232
230
err = - EFAULT ;
233
231
goto out ;
You can’t perform that action at this time.
0 commit comments