From: Dan Carpenter Date: Mon, 1 Oct 2018 16:44:41 +0000 (+0300) Subject: mei: samples: fix a signedness bug in amt_host_if_call() X-Git-Tag: v4.9.203~54 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a87ccca317a82577e856d14131d2bb4b868d4097;p=platform%2Fkernel%2Flinux-amlogic.git 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 Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- 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;