Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rapidio: mport_cdev: fix some error codes
copy_to_user() returns the number of bytes not copied but we want to return an error code. Fixes: a45bfc3 ('rapidio: add mport char device driver') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Alexandre Bounine <alexandre.bounine@idt.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
- Loading branch information