[PATCH 3.2 015/115] watchdog: rc32434_wdt: fix ioctl error handling

2016-04-26 Thread Ben Hutchings
3.2.80-rc1 review patch. If anyone has any objections, please let me know. -- From: "Michael S. Tsirkin" commit 10e7ac22cdd4d211cef99afcb9371b70cb175be6 upstream. Calling return copy_to_user(...) in an ioctl will not do the right thing if there's a pagefault:

[PATCH 3.2 015/115] watchdog: rc32434_wdt: fix ioctl error handling

2016-04-26 Thread Ben Hutchings
3.2.80-rc1 review patch. If anyone has any objections, please let me know. -- From: "Michael S. Tsirkin" 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