[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190501134833.GB24132@infradead.org>
Date: Wed, 1 May 2019 06:48:33 -0700
From: Christoph Hellwig <hch@...radead.org>
To: David Kozub <zub@...ux.fjfi.cvut.cz>
Cc: Jens Axboe <axboe@...nel.dk>,
Jonathan Derrick <jonathan.derrick@...el.com>,
Scott Bauer <sbauer@...donthack.me>,
linux-block@...r.kernel.org, linux-kernel@...r.kernel.org,
Jonas Rabenstein <jonas.rabenstein@...dium.uni-erlangen.de>
Subject: Re: [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.
Powered by blists - more mailing lists