mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 08:52:27 +00:00
copy_to_user() returns the number of bytes remaining but we want to return a negative error code on errors. Signed-off-by: Dan Carpenter <[email protected]> Cc: "Michael H. Warfield" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>