net/ena/base: check null meta desc
authorMichal Krawczyk <mk@semihalf.com>
Thu, 17 Sep 2020 05:30:30 +0000 (07:30 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 17:19:09 +0000 (19:19 +0200)
commit4ad61424aaab783002947e4348afcd16ecb58327
treeb31f0098e02ba97fc3a9803947e7bce1f01da1c3
parent39f817d081ea4341445a019d6d52c53a6239f102
net/ena/base: check null meta desc

Static code analysis showed up, that it's possible for meta_desc being
NULL. To avoid dereference of the NULL pointer, extra check was added if
the pointer is in fact valid.

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_eth_com.c