Skip to content
Commit 066dcd87 authored by Su Hui's avatar Su Hui Committed by Greg Kroah-Hartman
Browse files

misc: mei: client.c: fix problem of return '-EOVERFLOW' in mei_cl_write



[ Upstream commit ee623602 ]

Clang static analyzer complains that value stored to 'rets' is never
read.Let 'buf_len = -EOVERFLOW' to make sure we can return '-EOVERFLOW'.

Fixes: 8c8d964c ("mei: move hbuf_depth from the mei device to the hw modules")
Signed-off-by: default avatarSu Hui <suhui@nfschina.com>
Link: https://lore.kernel.org/r/20231120095523.178385-2-suhui@nfschina.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent d78789ba
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