summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2016-02-28 17:44:09 +0200
committerWilly Tarreau <w@1wt.eu>2016-06-07 10:42:46 +0200
commit9bd0caf31ca013ed42e4a00dd2872035975e5b04 (patch)
treeff268ebc69fa8a299c090c1c8478689c897444ff /fs
parentf5b0d85307a93e081aa254c9cb28a44de8ff8e81 (diff)
downloadlwn-9bd0caf31ca013ed42e4a00dd2872035975e5b04.tar.gz
lwn-9bd0caf31ca013ed42e4a00dd2872035975e5b04.zip
watchdog: rc32434_wdt: fix ioctl error handling
commit 10e7ac22cdd4d211cef99afcb9371b70cb175be6 upstream. Calling return copy_to_user(...) in an ioctl will not do the right thing if there's a pagefault: copy_to_user returns the number of bytes not copied in this case. Fix up watchdog/rc32434_wdt to do return copy_to_user(...)) ? -EFAULT : 0; instead. Cc: stable@vger.kernel.org Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be> Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions