git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0671044
)
power: fix error log on guest message polling
author
David Hunt
<david.hunt@intel.com>
Mon, 25 Nov 2019 15:00:42 +0000
(15:00 +0000)
committer
Thomas Monjalon
<thomas@monjalon.net>
Mon, 25 Nov 2019 23:29:24 +0000
(
00:29
+0100)
Should be passing errno rather than ret, which could be negative.
Coverity issue: 350362
Fixes:
9dc843eb273b
("power: extend guest channel API for reading")
Cc: stable@dpdk.org
Signed-off-by: David Hunt <david.hunt@intel.com>
lib/librte_power/guest_channel.c
patch
|
blob
|
history
diff --git
a/lib/librte_power/guest_channel.c
b/lib/librte_power/guest_channel.c
index
439cd2f
..
b984d55
100644
(file)
--- a/
lib/librte_power/guest_channel.c
+++ b/
lib/librte_power/guest_channel.c
@@
-148,7
+148,7
@@
int power_guest_channel_read_msg(void *pkt,
return -1;
} else if (ret < 0) {
RTE_LOG(ERR, GUEST_CHANNEL, "Error occurred during poll function: %s\n",
- strerror(
ret
));
+ strerror(
errno
));
return -1;
}