Commit 86113500 authored by Alexander Usyskin's avatar Alexander Usyskin Committed by Greg Kroah-Hartman

mei: make return values consistent across the driver

Follow-up for bits missed in
commit 7ca96aa2
mei: make return values consistent across the driver
Signed-off-by: default avatarAlexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 04dd3661
......@@ -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)
......
......@@ -768,10 +768,9 @@ int mei_cl_read_start(struct mei_cl *cl, size_t length)
cb->fop_type = MEI_FOP_READ;
if (mei_hbuf_acquire(dev)) {
if (mei_hbm_cl_flow_control_req(dev, cl)) {
rets = -ENODEV;
rets = mei_hbm_cl_flow_control_req(dev, cl);
if (rets < 0)
goto out;
}
list_add_tail(&cb->list, &dev->read_list.list);
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment