lkml.org 
[lkml]   [2019]   [May]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/3] block: sed-opal: ioctl for writing to shadow mbr
> +	if (!access_ok((void __user *)(uintptr_t)info->data, info->size))
> + return -EFAULT;

Just let the copy_from_user itself return the error itself.

\
 
 \ /
  Last update: 2019-05-01 15:49    [W:0.101 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site