]> git.baikalelectronics.ru Git - kernel.git/commit
tehuti: return -EFAULT on copy_to_user errors
authorDan Carpenter <error27@gmail.com>
Thu, 3 Jun 2010 00:05:35 +0000 (00:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Jun 2010 10:28:23 +0000 (03:28 -0700)
commit1ce04c410b010353553ab651808dd7d07a0fcbd4
tree37678ef819eb3bccb1c96498448e3a09a4aea35b
parent725bc93d8efb7b543ed7f27017524b6ce216d265
tehuti: 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 here.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tehuti.c