Staging: ced1401: fix copy_from/to_user warning messages
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Sep 2012 04:25:28 +0000 (21:25 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Sep 2012 04:25:28 +0000 (21:25 -0700)
commit74f5671442c6e9b2b54137d20fd7789078265897
tree43202ad0010d8d2d3e89de0afe9cb2ec488b833f
parentcd915200af6e01a8e923cc5440f72fb288bf2d6b
Staging: ced1401: fix copy_from/to_user warning messages

Properly check the return value of copy_from/to_user() and handle any
errors that might happen.

This removes a bunch of compiler warnings.

Cc: Alois Schlögl <alois.schloegl@ist.ac.at>
Cc: Greg P. Smith <greg@ced.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ced1401/ced_ioc.c