scsi: pmcraid: use normal copy_from_user
authorArnd Bergmann <arnd@arndb.de>
Fri, 21 Apr 2017 22:02:31 +0000 (00:02 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 24 Apr 2017 22:11:22 +0000 (18:11 -0400)
commitedb88cef0570914375d461107759cf0d6d677ed5
tree211391b3d30c01116d463850a4be9be86700afde
parent144b139c96200c51248b8701a1ef4a6bebd3dc8c
scsi: pmcraid: use normal copy_from_user

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.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/pmcraid.c