diff options
author | Alexander Usyskin <alexander.usyskin@intel.com> | 2023-11-26 11:24:49 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-11-27 13:37:32 +0000 |
commit | be6f9a39969a4ad01f0051a9b94af6e7f4d2d7ac (patch) | |
tree | 16dda3d79e5167ca85769d4205a518e2dd8fa556 | |
parent | 2cc14f52aeb78ce3f29677c2de1f06c0e91471ab (diff) | |
download | lwn-be6f9a39969a4ad01f0051a9b94af6e7f4d2d7ac.tar.gz lwn-be6f9a39969a4ad01f0051a9b94af6e7f4d2d7ac.zip |
mei: pxp: fix mei_pxp_send_message return value
mei_pxp_send_message() should return zero on success and
cannot propagate number of bytes as returned by internally
called mei_cldev_send().
Fixes: ee5cb39348e6 ("mei: pxp: recover from recv fail under memory pressure")
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Link: https://lore.kernel.org/r/20231126092449.88310-1-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/misc/mei/pxp/mei_pxp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/misc/mei/pxp/mei_pxp.c b/drivers/misc/mei/pxp/mei_pxp.c index f77d78fa5054..787c6a27a4be 100644 --- a/drivers/misc/mei/pxp/mei_pxp.c +++ b/drivers/misc/mei/pxp/mei_pxp.c @@ -84,9 +84,10 @@ mei_pxp_send_message(struct device *dev, const void *message, size_t size, unsig byte = ret; break; } + return byte; } - return byte; + return 0; } /** |