Skip to content
Snippets Groups Projects
Commit 18564781 authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman
Browse files

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


"out_buf_sz" needs to be signed for the error handling to work.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 03b2cbb6
No related branches found
No related tags found
No related merge requests found
...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment