net/ena/base: fix release of wait event
authorMichal Krawczyk <mk@semihalf.com>
Thu, 17 Sep 2020 05:30:20 +0000 (07:30 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 17:19:09 +0000 (19:19 +0200)
commitf034d4bb973a23e6dd2af8acdc3829b013962e47
treea84cef0fb35690e06d6194d4fe911655dabc891c
parent0c84e04824db69672d0691a0a96a92c29740705d
net/ena/base: fix release of wait event

The wait event is being accessed without making sure it the completion
context exists. The check for that is just below, so it could be used
for releasing wait even safely.

Fixes: 3adcba9a8987 ("net/ena: update HAL to the newer version")
Cc: stable@dpdk.org
Signed-off-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Igor Chauskin <igorch@amazon.com>
Reviewed-by: Guy Tzalik <gtzalik@amazon.com>
Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
drivers/net/ena/base/ena_com.c