Skip to content

Commit 1856478

Browse files
Dan Carpentergregkh
authored andcommitted
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>
1 parent 03b2cbb commit 1856478

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎samples/mei/mei-amt-version.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ static uint32_t amt_host_if_call(struct amt_host_if *acmd,
370370
unsigned int expected_sz)
371371
{
372372
uint32_t in_buf_sz;
373-
uint32_t out_buf_sz;
373+
ssize_t out_buf_sz;
374374
ssize_t written;
375375
uint32_t status;
376376
struct amt_host_if_resp_header *msg_hdr;

0 commit comments

Comments
 (0)