提交 d130dd30 编写于 作者: D Dan Carpenter 提交者: Xie XiuQi

mei: samples: fix a signedness bug in amt_host_if_call()

[ Upstream commit 185647813cac080453cb73a2e034a8821049f2a7 ]

"out_buf_sz" needs to be signed for the error handling to work.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 3db2b36d
...@@ -370,7 +370,7 @@ static uint32_t amt_host_if_call(struct amt_host_if *acmd, ...@@ -370,7 +370,7 @@ static uint32_t amt_host_if_call(struct amt_host_if *acmd,
unsigned int expected_sz) unsigned int expected_sz)
{ {
uint32_t in_buf_sz; uint32_t in_buf_sz;
uint32_t out_buf_sz; ssize_t out_buf_sz;
ssize_t written; ssize_t written;
uint32_t status; uint32_t status;
struct amt_host_if_resp_header *msg_hdr; struct amt_host_if_resp_header *msg_hdr;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册