]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
misc: mei: client.c: fix problem of return '-EOVERFLOW' in mei_cl_write
authorSu Hui <suhui@nfschina.com>
Mon, 20 Nov 2023 09:55:26 +0000 (17:55 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Dec 2023 17:36:45 +0000 (18:36 +0100)
commit0ccca12b7dd8534cd1a3e6d5261883d990c86447
treecd9e6e9334e5096e6d5b15c4a4b18115e4ae526c
parent271b563063e394f92e7d612b0dd665005fad5e95
misc: mei: client.c: fix problem of return '-EOVERFLOW' in mei_cl_write

[ Upstream commit ee6236027218f8531916f1c5caa5dc330379f287 ]

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

Fixes: 8c8d964ce90f ("mei: move hbuf_depth from the mei device to the hw modules")
Signed-off-by: Su Hui <suhui@nfschina.com>
Link: https://lore.kernel.org/r/20231120095523.178385-2-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