Re: [PATCH 2/3] block: sed-opal: ioctl for writing to shadow mbr

From: Christoph Hellwig
Date: Wed May 01 2019 - 09:48:51 EST


> + if (!access_ok((void __user *)(uintptr_t)info->data, info->size))
> + return -EFAULT;

Just let the copy_from_user itself return the error itself.