projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
03b2cbb
)
mei: samples: fix a signedness bug in amt_host_if_call()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Mon, 1 Oct 2018 16:44:41 +0000
(19:44 +0300)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 2 Oct 2018 22:39:59 +0000
(15:39 -0700)
"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>
samples/mei/mei-amt-version.c
patch
|
blob
|
history
diff --git
a/samples/mei/mei-amt-version.c
b/samples/mei/mei-amt-version.c
index
57d0d87
..
33e67bd
100644
(file)
--- 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;
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;
ssize_t written;
uint32_t status;
struct amt_host_if_resp_header *msg_hdr;