diff options
author | Arnd Bergmann | 2017-04-22 00:02:31 +0200 |
---|---|---|
committer | Martin K. Petersen | 2017-04-25 00:11:22 +0200 |
commit | edb88cef0570914375d461107759cf0d6d677ed5 (patch) | |
tree | 211391b3d30c01116d463850a4be9be86700afde /drivers/message/fusion | |
parent | scsi: pmcraid: fix minor sparse warnings (diff) | |
download | kernel-qcow2-linux-edb88cef0570914375d461107759cf0d6d677ed5.tar.gz kernel-qcow2-linux-edb88cef0570914375d461107759cf0d6d677ed5.tar.xz kernel-qcow2-linux-edb88cef0570914375d461107759cf0d6d677ed5.zip |
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>
Diffstat (limited to 'drivers/message/fusion')
0 files changed, 0 insertions, 0 deletions