summaryrefslogtreecommitdiffstats
path: root/drivers/misc/mei/bus.c
diff options
context:
space:
mode:
authorAlexander Usyskin <alexander.usyskin@intel.com>2014-03-31 16:59:24 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-04 01:21:23 +0200
commit86113500c060bccb0f08bdcadcecc0bd267fd25a (patch)
treef195af9c5646f13d87bb0c4541dd3ac9c66da91c /drivers/misc/mei/bus.c
parentmei: extract fw status registers (diff)
downloadlinux-86113500c060bccb0f08bdcadcecc0bd267fd25a.tar.xz
linux-86113500c060bccb0f08bdcadcecc0bd267fd25a.zip
mei: make return values consistent across the driver
Follow-up for bits missed in commit 7ca96aa278f8b9983184e318b06a0ed9ad0297b8 mei: make return values consistent across the driver 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>
Diffstat (limited to 'drivers/misc/mei/bus.c')
-rw-r--r--drivers/misc/mei/bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/mei/bus.c b/drivers/misc/mei/bus.c
index ddc5ac92a200..d5b9ed4452ef 100644
--- a/drivers/misc/mei/bus.c
+++ b/drivers/misc/mei/bus.c
@@ -247,7 +247,7 @@ static int ___mei_cl_send(struct mei_cl *cl, u8 *buf, size_t length,
return id;
if (length > dev->me_clients[id].props.max_msg_length)
- return -EINVAL;
+ return -EFBIG;
cb = mei_io_cb_init(cl, NULL);
if (!cb)