Re: [PATCH] scsi: pmcraid: use normal copy_from_user
From: Martin K. Petersen
Date: Mon Apr 24 2017 - 18:13:51 EST
Arnd,
> As pointed out by Al Viro for my previous series, the driver has no need
> to call access_ok() and __copy_from_user()/__copy_to_user(). Changing
> it to regular copy_from_user()/copy_to_user() simplifies the code without
> any real downsides, making it less error-prone at best.
>
> This patch by itself also addresses the warning about the access_ok()
> macro on MIPS, but both fixes improve the code, so ideally we apply
> them both.
Applied patches 1, 3, 4 as well as this one to 4.12/scsi-queue. I took
Christoph's version of patch 2.
Thanks!
--
Martin K. Petersen Oracle Linux Engineering