ipc: fix return without mutex unlock
authorAnatoly Burakov <anatoly.burakov@intel.com>
Tue, 17 Apr 2018 15:46:25 +0000 (16:46 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 23 Apr 2018 20:44:24 +0000 (22:44 +0200)
commitdd7b7f9a52529f605b80c8391a13775e2aa6d832
tree48445e641c8626b2ccf2bf738b7bc2463c044c02
parent505721e170e9e35f48578f57dd379fa081e88a16
ipc: fix return without mutex unlock

gettimeofday() returning a negative value is highly unlikely,
but if it ever happens, we will exit without unlocking the mutex.
Arguably at that point we'll have bigger problems, but fix this
issue anyway.

Coverity issue: 272595
Fixes: f05e26051c15 ("eal: add IPC asynchronous request")

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Jianfeng Tan <jianfeng.tan@intel.com>
lib/librte_eal/common/eal_common_proc.c