Char/Misc fix for 3.14-rc4
Here is a single commit, to fix a reported problem in the mei driver. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEABECAAYFAlMJLO4ACgkQMUfUDdst+ylvewCgofUZto3Z7tZbbMD/yUn87zWK wH8An2aPuyRWy5rLdbW3vw2gFBz9TXaJ =2xyg -----END PGP SIGNATURE----- Merge tag 'char-misc-3.14-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc Pull char/misc fix from Greg KH: "Here is a single commit, to fix a reported problem in the mei driver" * tag 'char-misc-3.14-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: mei: set client's read_cb to NULL when flow control fails
This commit is contained in:
commit
7834904362
|
@ -666,7 +666,6 @@ int mei_cl_read_start(struct mei_cl *cl, size_t length)
|
|||
goto err;
|
||||
|
||||
cb->fop_type = MEI_FOP_READ;
|
||||
cl->read_cb = cb;
|
||||
if (dev->hbuf_is_ready) {
|
||||
dev->hbuf_is_ready = false;
|
||||
if (mei_hbm_cl_flow_control_req(dev, cl)) {
|
||||
|
@ -678,6 +677,9 @@ int mei_cl_read_start(struct mei_cl *cl, size_t length)
|
|||
} else {
|
||||
list_add_tail(&cb->list, &dev->ctrl_wr_list.list);
|
||||
}
|
||||
|
||||
cl->read_cb = cb;
|
||||
|
||||
return rets;
|
||||
err:
|
||||
mei_io_cb_free(cb);
|
||||
|
|
Loading…
Reference in a new issue