net/qede: fix dereference before null check
authorYunjian Wang <wangyunjian@huawei.com>
Mon, 24 Aug 2020 11:46:53 +0000 (19:46 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 17:19:14 +0000 (19:19 +0200)
commitb5c2f5a0ba7b2f7c21be167d5ea418c46552a299
treedade3ebc2ab9ebe5445c4e2c1bb480ff7cbe2588
parent41763024c86f9544c1afa1e068c607df9691f7d0
net/qede: fix dereference before null check

Coverity flags that 'fp->sb_info' variable is used before
it's checked for NULL. This patch fixes this issue.

Coverity issue: 260413
Fixes: 4c4bdadfa9e7 ("net/qede: refactoring multi-queue implementation")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/qede/qede_rxtx.c