projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
672976c
)
misc: mei: client.c: return negative error code in mei_cl_write
author
Su Hui
<suhui@nfschina.com>
Mon, 20 Nov 2023 09:55:23 +0000
(17:55 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 13 Dec 2023 17:39:22 +0000
(18:39 +0100)
[ Upstream commit
8f06aee8089cf42fd99a20184501bd1347ce61b9
]
mei_msg_hdr_init() return negative error code, rets should be
'PTR_ERR(mei_hdr)' rather than '-PTR_ERR(mei_hdr)'.
Fixes: 0cd7c01a60f8 ("mei: add support for mei extended header.")
Signed-off-by: Su Hui <suhui@nfschina.com>
Link:
https://lore.kernel.org/r/20231120095523.178385-1-suhui@nfschina.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/misc/mei/client.c
patch
|
blob
|
history
diff --git
a/drivers/misc/mei/client.c
b/drivers/misc/mei/client.c
index 0b2fbe1335a7747dc195db0da91dec35b7af1a20..77501e392cdeb421beec32949f843ef7b5c6a01a 100644
(file)
--- a/
drivers/misc/mei/client.c
+++ b/
drivers/misc/mei/client.c
@@
-1978,7
+1978,7
@@
ssize_t mei_cl_write(struct mei_cl *cl, struct mei_cl_cb *cb)
mei_hdr = mei_msg_hdr_init(cb);
if (IS_ERR(mei_hdr)) {
- rets =
-
PTR_ERR(mei_hdr);
+ rets = PTR_ERR(mei_hdr);
mei_hdr = NULL;
goto err;
}