diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-10-01 19:44:41 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-24 08:22:59 +0100 |
commit | 36be9cd26716a923275e47c8912b28449d63fb1f (patch) | |
tree | fdb143d4573d64cc7125609f65c3e39e52e35d53 /samples | |
parent | 711b32942cea36da666624977eeebd1aea2bcd7d (diff) | |
download | linux-stable-36be9cd26716a923275e47c8912b28449d63fb1f.tar.gz linux-stable-36be9cd26716a923275e47c8912b28449d63fb1f.tar.bz2 linux-stable-36be9cd26716a923275e47c8912b28449d63fb1f.zip |
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: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'samples')
-rw-r--r-- | samples/mei/mei-amt-version.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/mei/mei-amt-version.c b/samples/mei/mei-amt-version.c index bb9988914a56..32234481ad7d 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; |