net/i40e: fix dereference before check when getting EEPROM
authorBruce Richardson <bruce.richardson@intel.com>
Mon, 8 Apr 2019 09:46:40 +0000 (10:46 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 22 Apr 2019 22:15:10 +0000 (00:15 +0200)
commitf2088e785cca5d0d6471aaebe90c0f8dabc5d069
tree3fc9992b3c69136ee6b4ce1ad44608b9c2f17038
parent3f1b8bf9139ab94aa5ba1334499c3928ec630359
net/i40e: fix dereference before check when getting EEPROM

As flagged by coverity, the "info" structure is being explicitly
dereferenced before being checked later for a NULL value.

Coverity issue: 277241
Fixes: 98e60c0d43f1 ("net/i40e: add module EEPROM callbacks for i40e")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Rami Rosen <ramirose@gmail.com>
drivers/net/i40e/i40e_ethdev.c