summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2018-10-01 19:44:41 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-10-03 01:39:59 +0300
commit185647813cac080453cb73a2e034a8821049f2a7 (patch)
tree2a1b90bb10fb726d2fd6d6d97da2d33a38a95047 /samples
parent03b2cbb6ea3c73e08fcf72d9ef8e286c4dcbd1fe (diff)
downloadlinux-185647813cac080453cb73a2e034a8821049f2a7.tar.xz
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: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples')
-rw-r--r--samples/mei/mei-amt-version.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/mei/mei-amt-version.c b/samples/mei/mei-amt-version.c
index 57d0d871dcf7..33e67bd1dc34 100644
--- a/samples/mei/mei-amt-version.c
+++ b/samples/mei/mei-amt-version.c
@@ -370,7 +370,7 @@ static uint32_t amt_host_if_call(struct amt_host_if *acmd,
unsigned int expected_sz)
{
uint32_t in_buf_sz;
- uint32_t out_buf_sz;
+ ssize_t out_buf_sz;
ssize_t written;
uint32_t status;
struct amt_host_if_resp_header *msg_hdr;