commit | cf2d3fc9786ba005f9bde50a4e72a1d0b70472ff | [log] [tgz] |
---|---|---|
author | Dan Carpenter <error27@gmail.com> | Sun Jun 06 21:03:04 2010 +0200 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Mon Jun 21 15:31:52 2010 -0700 |
tree | 661ac236928e9d2823d1bf30967ea321e020b008 | |
parent | e6dc269b402d9fa1562276345931943683e16ebd [diff] |
Staging: batman-adv: return -EFAULT on copy_to_user errors copy_to_user() returns the number of bites remaining but we want to return a negative error code here. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>