Dan Carpenter 05254a207a ip2: return -EFAULT on copy_to_user errors
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 <error27@gmail.com>
Cc: "Michael H. Warfield" <mhw@wittsend.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-08-23 18:17:21 -07:00
..
2006-02-03 08:32:10 -08:00
2006-12-07 08:39:43 -08:00
2008-10-13 09:51:39 -07:00
2008-10-13 09:51:39 -07:00
2010-02-09 11:13:56 +01:00
2009-06-11 08:51:01 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2008-10-13 09:51:39 -07:00