commit | 3ca121c2f4be85f3fbf398583bc8c42a145e3533 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Sat Aug 26 09:02:55 2017 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Aug 28 10:24:06 2017 +0200 |
tree | 91fc7e193af4f5b05f1a169e6b2acf4f0efb711f | |
parent | 9c8e28df4457e6734237013adb577dbb265df15d [diff] |
staging: lustre: obdclass: return -EFAULT if copy_to_user() fails We recently changed from using obd_ioctl_popdata() to calling copy_to_user() directly. This if statement was supposed to be deleted but it was over looked. "err" is zero at this point so it means we return success. Fixes: b03679f6a41a ("staging: lustre: uapi: remove obd_ioctl_popdata() wrapper") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>