OSDN Git Service

mei: samples: fix a signedness bug in amt_host_if_call()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 1 Oct 2018 16:44:41 +0000 (19:44 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Nov 2019 14:54:31 +0000 (15:54 +0100)
commitd094c54945e3a0c247aa458e8322e35b8cb1cd00
tree1b2e0a0545abc5724b6c0b8917b1a964a0a96dce
parent208302af92112ff13cd47e2e6902fc365326c588
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>
Documentation/misc-devices/mei/mei-amt-version.c