mei: mei_write correct checks for copy_from_user
authorAlexander Usyskin <alexander.usyskin@intel.com>
Mon, 2 Sep 2013 00:11:02 +0000 (03:11 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Sep 2013 15:23:00 +0000 (08:23 -0700)
commitd8b29efa27de17dafe516d45204dbb744ccdfa48
treede691c54ad682ec8bd4cef081f63f58422fd5db6
parent23f5a322063cba7c9f5dba5205e2960a24291373
mei: mei_write correct checks for copy_from_user

1. return -EFUALT when copy_from_user fails
2. display error message on failure in error level

Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/main.c